Package org.apache.commons.vfs2.impl
Class DefaultFileContentInfo
java.lang.Object
org.apache.commons.vfs2.impl.DefaultFileContentInfo
- All Implemented Interfaces:
FileContentInfo
The default file content information.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultFileContentInfo
(String contentType, String contentEncoding) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the content encoding.Gets the content type.
-
Constructor Details
-
DefaultFileContentInfo
Constructs a new instance.- Parameters:
contentType
- A content type.contentEncoding
- A content encoding.
-
-
Method Details
-
getContentEncoding
Description copied from interface:FileContentInfo
Gets the content encoding.- Specified by:
getContentEncoding
in interfaceFileContentInfo
- Returns:
- The file content encoding.
-
getContentType
Description copied from interface:FileContentInfo
Gets the content type.- Specified by:
getContentType
in interfaceFileContentInfo
- Returns:
- The file content type.
-