Class ShrinkWrapFileSystemProvider
- java.lang.Object
-
- java.nio.file.spi.FileSystemProvider
-
- org.jboss.shrinkwrap.impl.nio.file.ShrinkWrapFileSystemProvider
-
public class ShrinkWrapFileSystemProvider extends FileSystemProvider
FileSystemProvider
implementation for ShrinkWrapArchive
s.- 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:
getScheme
in classFileSystemProvider
- See Also:
FileSystemProvider.getScheme()
-
newFileSystem
public FileSystem newFileSystem(URI uri, Map<String,?> env) throws IOException
- Specified by:
newFileSystem
in classFileSystemProvider
- Throws:
IOException
- See Also:
FileSystemProvider.newFileSystem(java.net.URI, java.util.Map)
-
getFileSystem
public FileSystem getFileSystem(URI uri)
- Specified by:
getFileSystem
in classFileSystemProvider
- See Also:
FileSystemProvider.getFileSystem(java.net.URI)
-
getPath
public Path getPath(URI uri)
- Specified by:
getPath
in classFileSystemProvider
- See Also:
FileSystemProvider.getPath(java.net.URI)
-
newFileChannel
public FileChannel newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException
- Overrides:
newFileChannel
in 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:
newByteChannel
in 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:
newDirectoryStream
in 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:
createDirectory
in 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:
delete
in 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:
copy
in classFileSystemProvider
- Throws:
IOException
-
move
public void move(Path source, Path target, CopyOption... options) throws IOException
- Specified by:
move
in 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:
isSameFile
in 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:
isHidden
in classFileSystemProvider
- Throws:
IOException
- See Also:
FileSystemProvider.isHidden(java.nio.file.Path)
-
getFileStore
public FileStore getFileStore(Path path) throws IOException
- Specified by:
getFileStore
in classFileSystemProvider
- Throws:
IOException
- See Also:
FileSystemProvider.getFileStore(java.nio.file.Path)
-
checkAccess
public void checkAccess(Path path, AccessMode... modes) throws IOException
- Specified by:
checkAccess
in 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:
readAttributes
in 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:
readAttributes
in 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:
setAttribute
in classFileSystemProvider
- Throws:
IOException
- See Also:
FileSystemProvider.setAttribute(java.nio.file.Path, java.lang.String, java.lang.Object, java.nio.file.LinkOption[])
-
-