congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
FileContentInfoFilenameFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
FileContentInfoFilenameFactory
in
org.apache.commons.vfs2.impl

Best Java code snippets using org.apache.commons.vfs2.impl.FileContentInfoFilenameFactory (Showing top 7 results out of 315)

origin: apache/metron

vfs.addMimeTypeMap("application/x-gzip", "gz");
vfs.addMimeTypeMap("application/zip", "zip");
vfs.setFileContentInfoFactory(new FileContentInfoFilenameFactory());
vfs.setFilesCache(new SoftRefFilesCache());
vfs.setReplicator(new UniqueFileReplicator(new File(System.getProperty("java.io.tmpdir"))));
origin: apache/accumulo

vfs.addMimeTypeMap("application/x-gzip", "gz");
vfs.addMimeTypeMap("application/zip", "zip");
vfs.setFileContentInfoFactory(new FileContentInfoFilenameFactory());
vfs.setFilesCache(new SoftRefFilesCache());
File cacheDir = computeTopCacheDir();
origin: com.github.abashev/commons-vfs2

/**
 * Initializes this manager.
 * <p>
 * If no value for the following properties was specified, it will use the following defaults:
 * <ul>
 * <li>fileContentInfoFactory = new FileContentInfoFilenameFactory()</li>
 * <li>filesCache = new SoftRefFilesCache()</li>
 * <li>fileCacheStrategy = CacheStrategy.ON_RESOLVE</li>
 * </ul>
 *
 * @throws FileSystemException if an error occurs during initialization.
 */
public void init() throws FileSystemException {
  if (fileContentInfoFactory == null) {
    fileContentInfoFactory = new FileContentInfoFilenameFactory();
  }
  if (filesCache == null) {
    // filesCache = new DefaultFilesCache();
    filesCache = new SoftRefFilesCache();
  }
  if (fileCacheStrategy == null) {
    fileCacheStrategy = CacheStrategy.ON_RESOLVE;
  }
  setupComponent(filesCache);
  vfsProvider = new VirtualFileProvider();
  setupComponent(vfsProvider);
  init = true;
}
origin: org.apache.commons/commons-vfs2

/**
 * Initializes this manager.
 * <p>
 * If no value for the following properties was specified, it will use the following defaults:
 * <ul>
 * <li>fileContentInfoFactory = new FileContentInfoFilenameFactory()</li>
 * <li>filesCache = new SoftRefFilesCache()</li>
 * <li>fileCacheStrategy = CacheStrategy.ON_RESOLVE</li>
 * </ul>
 *
 * @throws FileSystemException if an error occurs during initialization.
 */
public void init() throws FileSystemException {
  if (fileContentInfoFactory == null) {
    fileContentInfoFactory = new FileContentInfoFilenameFactory();
  }
  if (filesCache == null) {
    // filesCache = new DefaultFilesCache();
    filesCache = new SoftRefFilesCache();
  }
  if (fileCacheStrategy == null) {
    fileCacheStrategy = CacheStrategy.ON_RESOLVE;
  }
  setupComponent(filesCache);
  vfsProvider = new VirtualFileProvider();
  setupComponent(vfsProvider);
  init = true;
}
origin: apache/commons-vfs

/**
 * Initializes this manager.
 * <p>
 * If no value for the following properties was specified, it will use the following defaults:
 * <ul>
 * <li>fileContentInfoFactory = new FileContentInfoFilenameFactory()</li>
 * <li>filesCache = new SoftRefFilesCache()</li>
 * <li>fileCacheStrategy = CacheStrategy.ON_RESOLVE</li>
 * </ul>
 *
 * @throws FileSystemException if an error occurs during initialization.
 */
public void init() throws FileSystemException {
  if (fileContentInfoFactory == null) {
    fileContentInfoFactory = new FileContentInfoFilenameFactory();
  }
  if (filesCache == null) {
    // filesCache = new DefaultFilesCache();
    filesCache = new SoftRefFilesCache();
  }
  if (fileCacheStrategy == null) {
    fileCacheStrategy = CacheStrategy.ON_RESOLVE;
  }
  setupComponent(filesCache);
  vfsProvider = new VirtualFileProvider();
  setupComponent(vfsProvider);
  init = true;
}
origin: org.jetbrains.intellij.deps/commons-vfs2

fileContentInfoFactory = new FileContentInfoFilenameFactory();
origin: org.apache.accumulo/accumulo-start

vfs.addMimeTypeMap("application/x-gzip", "gz");
vfs.addMimeTypeMap("application/zip", "zip");
vfs.setFileContentInfoFactory(new FileContentInfoFilenameFactory());
vfs.setFilesCache(new SoftRefFilesCache());
File cacheDir = computeTopCacheDir();
org.apache.commons.vfs2.implFileContentInfoFilenameFactory

Javadoc

The FileContentInfoFilenameFactory.

Uses the filename extension to determine the content-type. The content-encoding is not resolved.

Most used methods

  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now