Class HdfsFileContentInfoFactory
java.lang.Object
org.apache.commons.vfs2.provider.hdfs.HdfsFileContentInfoFactory
- All Implemented Interfaces:
- FileContentInfoFactory
Creates FileContentInfo instances for HDFS.
- Since:
- 2.1
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreate(FileContent fileContent) Creates a FileContentInfo for the given FileContent.
- 
Constructor Details- 
HdfsFileContentInfoFactorypublic HdfsFileContentInfoFactory()Constructs a new instance.
 
- 
- 
Method Details- 
createCreates a FileContentInfo for the given FileContent.- Specified by:
- createin interface- FileContentInfoFactory
- Parameters:
- fileContent- Use this FileContent to create a matching FileContentInfo
- Returns:
- a FileContentInfo for the given FileContent with content set to "text/plain" and encoding set to "UTF-8"
- Throws:
- FileSystemException- when a problem occurs creating the FileContentInfo.
 
 
-