|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.at4j.zip.builder.DefaultInternalFileAttributesStrategy
public class DefaultInternalFileAttributesStrategy
This is the InternalFileAttributesStrategy
implementation that is
used by default by the ZipBuilder
.
It has a set of file extensions for files that it thinks are text files. This
set can be modified at will by clients. The default list was created by
taking all file name extensions for file types that could be suspected to
contain character data from the mime.types
configuration file in the
Apache web server version 2.0.63.
Constructor Summary | |
---|---|
DefaultInternalFileAttributesStrategy()
Create a default internal file attributes strategy instance using the default list of text file name extensions. |
Method Summary | |
---|---|
ZipInternalFileAttributes |
createInternalFileAttributes(UnixEntityType type,
AbsoluteLocation loc)
Create internal file attributes based on the supplied information. |
Set<String> |
getTextFileNameExtensionSet()
Get the set containing the file name extensions for files that this strategy object thinks are text files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultInternalFileAttributesStrategy()
Method Detail |
---|
public Set<String> getTextFileNameExtensionSet()
Extensions are added to the set without the leading dot.
public ZipInternalFileAttributes createInternalFileAttributes(UnixEntityType type, AbsoluteLocation loc)
InternalFileAttributesStrategy
createInternalFileAttributes
in interface InternalFileAttributesStrategy
type
- The type of entity that is to be added to a Zip archive.loc
- The location of the entity.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |