Class ShrinkWrapFileSystemProvider
- java.lang.Object
-
- java.nio.file.spi.FileSystemProvider
-
- org.jboss.shrinkwrap.impl.nio.file.ShrinkWrapFileSystemProvider
-
public class ShrinkWrapFileSystemProvider extends FileSystemProvider
FileSystemProviderimplementation for ShrinkWrapArchives.- Author:
- Andrew Lee Rubinger
-
-
Constructor Summary
Constructors Constructor Description ShrinkWrapFileSystemProvider()
-
Method Summary
-
Methods inherited from class java.nio.file.spi.FileSystemProvider
createLink, createSymbolicLink, deleteIfExists, installedProviders, newAsynchronousFileChannel, newFileSystem, newInputStream, newOutputStream, readSymbolicLink
-
-
-
-
Method Detail
-
getScheme
public String getScheme()
- Specified by:
getSchemein classFileSystemProvider- See Also:
FileSystemProvider.getScheme()
-
newFileSystem
public FileSystem newFileSystem(URI uri, Map<String,?> env) throws IOException
- Specified by:
newFileSystemin classFileSystemProvider- Throws:
IOException- See Also:
FileSystemProvider.newFileSystem(java.net.URI, java.util.Map)
-
getFileSystem
public FileSystem getFileSystem(URI uri)
- Specified by:
getFileSystemin classFileSystemProvider- See Also:
FileSystemProvider.getFileSystem(java.net.URI)
-
getPath
public Path getPath(URI uri)
- Specified by:
getPathin classFileSystemProvider- See Also:
FileSystemProvider.getPath(java.net.URI)
-
newFileChannel
public FileChannel newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException
- Overrides:
newFileChannelin classFileSystemProvider- Throws:
IOException- See Also:
java.nio.file.spi.FileSystemProvider#newFileChannel(java.nio.file.Path, java.util.Set, java.nio.file.attribute.FileAttribute>[])
-
newByteChannel
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException
- Specified by:
newByteChannelin classFileSystemProvider- Throws:
IOException- See Also:
java.nio.file.spi.FileSystemProvider#newByteChannel(java.nio.file.Path, java.util.Set, java.nio.file.attribute.FileAttribute>[])
-
newDirectoryStream
public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) throws IOException
- Specified by:
newDirectoryStreamin classFileSystemProvider- Throws:
IOException- See Also:
FileSystemProvider.newDirectoryStream(java.nio.file.Path, java.nio.file.DirectoryStream.Filter)
-
createDirectory
public void createDirectory(Path dir, FileAttribute<?>... attrs) throws IOException
- Specified by:
createDirectoryin classFileSystemProvider- Throws:
IOException- See Also:
java.nio.file.spi.FileSystemProvider#createDirectory(java.nio.file.Path, java.nio.file.attribute.FileAttribute>[])
-
delete
public void delete(Path path) throws IOException
- Specified by:
deletein classFileSystemProvider- Throws:
IOException- See Also:
FileSystemProvider.delete(java.nio.file.Path)
-
copy
public void copy(Path source, Path target, CopyOption... options) throws IOException
- Specified by:
copyin classFileSystemProvider- Throws:
IOException
-
move
public void move(Path source, Path target, CopyOption... options) throws IOException
- Specified by:
movein classFileSystemProvider- Throws:
IOException- See Also:
FileSystemProvider.move(java.nio.file.Path, java.nio.file.Path, java.nio.file.CopyOption[])
-
isSameFile
public boolean isSameFile(Path path1, Path path2) throws IOException
- Specified by:
isSameFilein classFileSystemProvider- Throws:
IOException- See Also:
FileSystemProvider.isSameFile(java.nio.file.Path, java.nio.file.Path)
-
isHidden
public boolean isHidden(Path path) throws IOException
- Specified by:
isHiddenin classFileSystemProvider- Throws:
IOException- See Also:
FileSystemProvider.isHidden(java.nio.file.Path)
-
getFileStore
public FileStore getFileStore(Path path) throws IOException
- Specified by:
getFileStorein classFileSystemProvider- Throws:
IOException- See Also:
FileSystemProvider.getFileStore(java.nio.file.Path)
-
checkAccess
public void checkAccess(Path path, AccessMode... modes) throws IOException
- Specified by:
checkAccessin classFileSystemProvider- Throws:
IOException- See Also:
FileSystemProvider.checkAccess(java.nio.file.Path, java.nio.file.AccessMode[])
-
getFileAttributeView
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options)
-
readAttributes
public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, LinkOption... options) throws IOException
- Specified by:
readAttributesin classFileSystemProvider- Throws:
IOException- See Also:
FileSystemProvider.readAttributes(java.nio.file.Path, java.lang.Class, java.nio.file.LinkOption[])
-
readAttributes
public Map<String,Object> readAttributes(Path path, String attributes, LinkOption... options) throws IOException
- Specified by:
readAttributesin classFileSystemProvider- Throws:
IOException- See Also:
FileSystemProvider.readAttributes(java.nio.file.Path, java.lang.String, java.nio.file.LinkOption[])
-
setAttribute
public void setAttribute(Path path, String attribute, Object value, LinkOption... options) throws IOException
- Specified by:
setAttributein classFileSystemProvider- Throws:
IOException- See Also:
FileSystemProvider.setAttribute(java.nio.file.Path, java.lang.String, java.lang.Object, java.nio.file.LinkOption[])
-
-