public class DefaultInternalFileAttributesStrategy extends Object implements InternalFileAttributesStrategy
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 and Description |
---|
DefaultInternalFileAttributesStrategy()
Create a default internal file attributes strategy instance using the
default list of text file name extensions.
|
Modifier and Type | Method and Description |
---|---|
ZipInternalFileAttributes |
createInternalFileAttributes(UnixEntityType type,
org.entityfs.el.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.
|
public DefaultInternalFileAttributesStrategy()
public Set<String> getTextFileNameExtensionSet()
Extensions are added to the set without the leading dot.
public ZipInternalFileAttributes createInternalFileAttributes(UnixEntityType type, org.entityfs.el.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.