List of usage examples for org.apache.commons.vfs2.impl DefaultFileContentInfo DefaultFileContentInfo
public DefaultFileContentInfo(final String contentType, final String contentEncoding)
From source file:org.apache.accumulo.start.classloader.vfs.providers.HdfsFileContentInfoFactory.java
/** * Creates a FileContentInfo for a the given FileContent. * * @param fileContent/*from w w w . j av a 2s . co m*/ * Use this FileContent to create a matching FileContentInfo * @return 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. */ @Override public FileContentInfo create(final FileContent fileContent) throws FileSystemException { return new DefaultFileContentInfo(CONTENT, ENCODING); }