Class HdfsFileContentInfoFactory
java.lang.Object
org.apache.commons.vfs2.provider.hdfs.HdfsFileContentInfoFactory
- All Implemented Interfaces:
org.apache.commons.vfs2.FileContentInfoFactory
public class HdfsFileContentInfoFactory
extends Object
implements org.apache.commons.vfs2.FileContentInfoFactory
Creates FileContentInfo instances for HDFS.
- Since:
- 2.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.vfs2.FileContentInfo
create
(org.apache.commons.vfs2.FileContent fileContent) Creates a FileContentInfo for the given FileContent.
-
Constructor Details
-
HdfsFileContentInfoFactory
public HdfsFileContentInfoFactory()Constructs a new instance.
-
-
Method Details
-
create
public org.apache.commons.vfs2.FileContentInfo create(org.apache.commons.vfs2.FileContent fileContent) throws org.apache.commons.vfs2.FileSystemException Creates a FileContentInfo for the given FileContent.- Specified by:
create
in interfaceorg.apache.commons.vfs2.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:
org.apache.commons.vfs2.FileSystemException
- when a problem occurs creating the FileContentInfo.
-