org.apache.accumulo.start.classloader.vfs.providers
Class HdfsFileContentInfoFactory

java.lang.Object
  extended by org.apache.accumulo.start.classloader.vfs.providers.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
HdfsFileContentInfoFactory()
           
 
Method Summary
 org.apache.commons.vfs2.FileContentInfo create(org.apache.commons.vfs2.FileContent fileContent)
          Creates a FileContentInfo for a the given FileContent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HdfsFileContentInfoFactory

public HdfsFileContentInfoFactory()
Method Detail

create

public org.apache.commons.vfs2.FileContentInfo create(org.apache.commons.vfs2.FileContent fileContent)
                                               throws org.apache.commons.vfs2.FileSystemException
Creates a FileContentInfo for a the given FileContent.

Specified by:
create in interface org.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.


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.