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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(FileContent fileContent) Creates a FileContentInfo for the given FileContent.
-
Constructor Details
-
HdfsFileContentInfoFactory
public HdfsFileContentInfoFactory()Constructs a new instance.
-
-
Method Details
-
create
Creates a FileContentInfo for the given FileContent.- Specified by:
create
in interfaceFileContentInfoFactory
- 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.
-