public class BundleFileSystemProvider extends FileSystemProvider
Modifier and Type | Class and Description |
---|---|
class |
BundleFileSystemProvider.BundleFileChannel |
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_VND_WF4EVER_ROBUNDLE_ZIP |
static String |
MIMETYPE_FILE |
protected static Map<URI,WeakReference<BundleFileSystem>> |
openFilesystems
The list of open file systems.
|
Constructor and Description |
---|
BundleFileSystemProvider()
Deprecated.
|
createLink, createSymbolicLink, deleteIfExists, installedProviders, newAsynchronousFileChannel, readSymbolicLink
public static final String APPLICATION_VND_WF4EVER_ROBUNDLE_ZIP
public static final String MIMETYPE_FILE
protected static Map<URI,WeakReference<BundleFileSystem>> openFilesystems
@Deprecated public BundleFileSystemProvider()
protected static void addMimeTypeToZip(ZipOutputStream out, String mimetype) throws IOException
IOException
protected static void createBundleAsZip(Path bundle, String mimetype) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static BundleFileSystemProvider getInstance()
public static BundleFileSystem newFileSystemFromExisting(Path bundle) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static BundleFileSystem newFileSystemFromNew(Path bundle) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static BundleFileSystem newFileSystemFromNew(Path bundle, String mimetype) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static BundleFileSystem newFileSystemFromTemporary() throws IOException
IOException
public void checkAccess(Path path, AccessMode... modes) throws IOException
checkAccess
in class FileSystemProvider
IOException
public void copy(Path source, Path target, CopyOption... options) throws IOException
copy
in class FileSystemProvider
IOException
public void createDirectory(Path dir, FileAttribute<?>... attrs) throws IOException
createDirectory
in class FileSystemProvider
IOException
public void delete(Path path) throws IOException
delete
in class FileSystemProvider
IOException
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options)
getFileAttributeView
in class FileSystemProvider
public FileStore getFileStore(Path path) throws IOException
getFileStore
in class FileSystemProvider
IOException
public BundleFileSystem getFileSystem(URI uri)
getFileSystem
in class FileSystemProvider
protected boolean getJarDoubleEscaping()
public Path getPath(URI uri)
getPath
in class FileSystemProvider
public String getScheme()
getScheme
in class FileSystemProvider
public boolean isHidden(Path path) throws IOException
isHidden
in class FileSystemProvider
IOException
public boolean isSameFile(Path path, Path path2) throws IOException
isSameFile
in class FileSystemProvider
IOException
public void move(Path source, Path target, CopyOption... options) throws IOException
move
in class FileSystemProvider
IOException
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException
newByteChannel
in class FileSystemProvider
IOException
public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) throws IOException
newDirectoryStream
in class FileSystemProvider
IOException
public FileChannel newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException
newFileChannel
in class FileSystemProvider
IOException
public FileSystem newFileSystem(Path path, Map<String,?> env) throws IOException
newFileSystem
in class FileSystemProvider
IOException
public BundleFileSystem newFileSystem(URI uri, Map<String,?> env) throws IOException
newFileSystem
in class FileSystemProvider
IOException
public InputStream newInputStream(Path path, OpenOption... options) throws IOException
newInputStream
in class FileSystemProvider
IOException
public OutputStream newOutputStream(Path path, OpenOption... options) throws IOException
newOutputStream
in class FileSystemProvider
IOException
public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, LinkOption... options) throws IOException
readAttributes
in class FileSystemProvider
IOException
public Map<String,Object> readAttributes(Path path, String attributes, LinkOption... options) throws IOException
readAttributes
in class FileSystemProvider
IOException
public void setAttribute(Path path, String attribute, Object value, LinkOption... options) throws IOException
setAttribute
in class FileSystemProvider
IOException
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.