Example usage for org.apache.commons.vfs.provider LayeredFileName LayeredFileName

List of usage examples for org.apache.commons.vfs.provider LayeredFileName LayeredFileName

Introduction

In this page you can find the example usage for org.apache.commons.vfs.provider LayeredFileName LayeredFileName.

Prototype

public LayeredFileName(final String scheme, final FileName outerUri, final String path, final FileType type) 

Source Link

Usage

From source file:com.github.stephenc.javaisotools.vfs.provider.iso.IsoFileProvider.java

protected FileSystem doCreateFileSystem(final String scheme, final FileObject file,
        final FileSystemOptions fileSystemOptions) throws FileSystemException {
    final FileName rootName = new LayeredFileName(scheme, file.getName(), FileName.ROOT_PATH, FileType.FOLDER);
    return new IsoFileSystem(rootName, file, fileSystemOptions);
}

From source file:org.sonatype.gshell.vfs.provider.truezip.TruezipFileProvider.java

/**
 * Creates a layered file system.  This method is called if the file system is not cached.
 *
 * @param scheme    The URI scheme./*from   ww  w.  j a  v  a2 s  .  c  om*/
 * @param file      The file to create the file system on top of.
 * @return          The file system.
 */
protected FileSystem doCreateFileSystem(final String scheme, final FileObject file,
        final FileSystemOptions options) throws FileSystemException {
    FileName name = new LayeredFileName(scheme, file.getName(), FileName.ROOT_PATH, FileType.FOLDER);
    return new TruezipFileSystem(name, file, options);
}