org.kie.commons.java.nio.fs.file
public class SimpleFileSystemProvider extends Object implements org.kie.commons.java.nio.file.spi.FileSystemProvider
Constructor and Description |
---|
SimpleFileSystemProvider() |
Modifier and Type | Method and Description |
---|---|
void |
checkAccess(org.kie.commons.java.nio.file.Path path,
org.kie.commons.java.nio.file.AccessMode... modes) |
void |
copy(org.kie.commons.java.nio.file.Path source,
org.kie.commons.java.nio.file.Path target,
org.kie.commons.java.nio.file.CopyOption... options) |
void |
createDirectory(org.kie.commons.java.nio.file.Path dir,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) |
void |
createLink(org.kie.commons.java.nio.file.Path link,
org.kie.commons.java.nio.file.Path existing) |
void |
createSymbolicLink(org.kie.commons.java.nio.file.Path link,
org.kie.commons.java.nio.file.Path target,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) |
void |
delete(org.kie.commons.java.nio.file.Path path) |
boolean |
deleteIfExists(org.kie.commons.java.nio.file.Path path) |
void |
forceAsDefault() |
<V extends org.kie.commons.java.nio.file.attribute.FileAttributeView> |
getFileAttributeView(org.kie.commons.java.nio.file.Path path,
Class<V> type,
org.kie.commons.java.nio.file.LinkOption... options) |
org.kie.commons.java.nio.file.FileStore |
getFileStore(org.kie.commons.java.nio.file.Path path) |
org.kie.commons.java.nio.file.FileSystem |
getFileSystem(URI uri) |
org.kie.commons.java.nio.file.Path |
getPath(URI uri) |
String |
getScheme() |
boolean |
isDefault() |
boolean |
isHidden(org.kie.commons.java.nio.file.Path path) |
boolean |
isSameFile(org.kie.commons.java.nio.file.Path path,
org.kie.commons.java.nio.file.Path path2) |
void |
move(org.kie.commons.java.nio.file.Path source,
org.kie.commons.java.nio.file.Path target,
org.kie.commons.java.nio.file.CopyOption... options) |
org.kie.commons.java.nio.channels.AsynchronousFileChannel |
newAsynchronousFileChannel(org.kie.commons.java.nio.file.Path path,
Set<? extends org.kie.commons.java.nio.file.OpenOption> options,
ExecutorService executor,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) |
org.kie.commons.java.nio.channels.SeekableByteChannel |
newByteChannel(org.kie.commons.java.nio.file.Path path,
Set<? extends org.kie.commons.java.nio.file.OpenOption> options,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) |
org.kie.commons.java.nio.file.DirectoryStream<org.kie.commons.java.nio.file.Path> |
newDirectoryStream(org.kie.commons.java.nio.file.Path dir,
org.kie.commons.java.nio.file.DirectoryStream.Filter<org.kie.commons.java.nio.file.Path> filter) |
FileChannel |
newFileChannel(org.kie.commons.java.nio.file.Path path,
Set<? extends org.kie.commons.java.nio.file.OpenOption> options,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) |
org.kie.commons.java.nio.file.FileSystem |
newFileSystem(org.kie.commons.java.nio.file.Path path,
Map<String,?> env) |
org.kie.commons.java.nio.file.FileSystem |
newFileSystem(URI uri,
Map<String,?> env) |
InputStream |
newInputStream(org.kie.commons.java.nio.file.Path path,
org.kie.commons.java.nio.file.OpenOption... options) |
OutputStream |
newOutputStream(org.kie.commons.java.nio.file.Path path,
org.kie.commons.java.nio.file.OpenOption... options) |
<A extends org.kie.commons.java.nio.file.attribute.BasicFileAttributes> |
readAttributes(org.kie.commons.java.nio.file.Path path,
Class<A> type,
org.kie.commons.java.nio.file.LinkOption... options) |
Map<String,Object> |
readAttributes(org.kie.commons.java.nio.file.Path path,
String attributes,
org.kie.commons.java.nio.file.LinkOption... options) |
org.kie.commons.java.nio.file.Path |
readSymbolicLink(org.kie.commons.java.nio.file.Path link) |
void |
setAttribute(org.kie.commons.java.nio.file.Path path,
String attribute,
Object value,
org.kie.commons.java.nio.file.LinkOption... options) |
public void forceAsDefault()
forceAsDefault
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
public boolean isDefault()
isDefault
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
public String getScheme()
getScheme
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
public org.kie.commons.java.nio.file.FileSystem getFileSystem(URI uri) throws IllegalArgumentException, org.kie.commons.java.nio.file.FileSystemNotFoundException, SecurityException
getFileSystem
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
org.kie.commons.java.nio.file.FileSystemNotFoundException
SecurityException
public org.kie.commons.java.nio.file.Path getPath(URI uri) throws IllegalArgumentException, org.kie.commons.java.nio.file.FileSystemNotFoundException, SecurityException
getPath
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
org.kie.commons.java.nio.file.FileSystemNotFoundException
SecurityException
public org.kie.commons.java.nio.file.FileSystem newFileSystem(URI uri, Map<String,?> env) throws IllegalArgumentException, org.kie.commons.java.nio.IOException, SecurityException, org.kie.commons.java.nio.file.FileSystemAlreadyExistsException
newFileSystem
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
org.kie.commons.java.nio.file.FileSystemAlreadyExistsException
public org.kie.commons.java.nio.file.FileSystem newFileSystem(org.kie.commons.java.nio.file.Path path, Map<String,?> env) throws IllegalArgumentException, UnsupportedOperationException, org.kie.commons.java.nio.IOException, SecurityException
newFileSystem
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
public InputStream newInputStream(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.OpenOption... options) throws IllegalArgumentException, org.kie.commons.java.nio.file.NoSuchFileException, org.kie.commons.java.nio.IOException, SecurityException
newInputStream
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
org.kie.commons.java.nio.file.NoSuchFileException
org.kie.commons.java.nio.IOException
SecurityException
public OutputStream newOutputStream(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.OpenOption... options) throws IllegalArgumentException, UnsupportedOperationException, org.kie.commons.java.nio.IOException, SecurityException
newOutputStream
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
public FileChannel newFileChannel(org.kie.commons.java.nio.file.Path path, Set<? extends org.kie.commons.java.nio.file.OpenOption> options, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, org.kie.commons.java.nio.IOException, SecurityException
newFileChannel
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
public org.kie.commons.java.nio.channels.AsynchronousFileChannel newAsynchronousFileChannel(org.kie.commons.java.nio.file.Path path, Set<? extends org.kie.commons.java.nio.file.OpenOption> options, ExecutorService executor, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, org.kie.commons.java.nio.IOException, SecurityException
newAsynchronousFileChannel
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
public org.kie.commons.java.nio.channels.SeekableByteChannel newByteChannel(org.kie.commons.java.nio.file.Path path, Set<? extends org.kie.commons.java.nio.file.OpenOption> options, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, org.kie.commons.java.nio.file.FileAlreadyExistsException, org.kie.commons.java.nio.IOException, SecurityException
newByteChannel
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
public void createDirectory(org.kie.commons.java.nio.file.Path dir, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws UnsupportedOperationException, org.kie.commons.java.nio.file.FileAlreadyExistsException, org.kie.commons.java.nio.IOException, SecurityException
createDirectory
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
public org.kie.commons.java.nio.file.DirectoryStream<org.kie.commons.java.nio.file.Path> newDirectoryStream(org.kie.commons.java.nio.file.Path dir, org.kie.commons.java.nio.file.DirectoryStream.Filter<org.kie.commons.java.nio.file.Path> filter) throws org.kie.commons.java.nio.file.NotDirectoryException, org.kie.commons.java.nio.IOException, SecurityException
newDirectoryStream
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.file.NotDirectoryException
org.kie.commons.java.nio.IOException
SecurityException
public void createSymbolicLink(org.kie.commons.java.nio.file.Path link, org.kie.commons.java.nio.file.Path target, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws UnsupportedOperationException, org.kie.commons.java.nio.file.FileAlreadyExistsException, org.kie.commons.java.nio.IOException, SecurityException
createSymbolicLink
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
public void createLink(org.kie.commons.java.nio.file.Path link, org.kie.commons.java.nio.file.Path existing) throws UnsupportedOperationException, org.kie.commons.java.nio.file.FileAlreadyExistsException, org.kie.commons.java.nio.IOException, SecurityException
createLink
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
public void delete(org.kie.commons.java.nio.file.Path path) throws org.kie.commons.java.nio.file.NoSuchFileException, org.kie.commons.java.nio.file.DirectoryNotEmptyException, org.kie.commons.java.nio.IOException, SecurityException
delete
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.file.NoSuchFileException
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
public boolean deleteIfExists(org.kie.commons.java.nio.file.Path path) throws org.kie.commons.java.nio.file.DirectoryNotEmptyException, org.kie.commons.java.nio.IOException, SecurityException
deleteIfExists
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
public org.kie.commons.java.nio.file.Path readSymbolicLink(org.kie.commons.java.nio.file.Path link) throws UnsupportedOperationException, org.kie.commons.java.nio.file.NotLinkException, org.kie.commons.java.nio.IOException, SecurityException
readSymbolicLink
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
org.kie.commons.java.nio.file.NotLinkException
org.kie.commons.java.nio.IOException
SecurityException
public boolean isSameFile(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.Path path2) throws org.kie.commons.java.nio.IOException, SecurityException
isSameFile
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.IOException
SecurityException
public boolean isHidden(org.kie.commons.java.nio.file.Path path) throws IllegalArgumentException, org.kie.commons.java.nio.IOException, SecurityException
isHidden
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
public void checkAccess(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.AccessMode... modes) throws UnsupportedOperationException, org.kie.commons.java.nio.file.NoSuchFileException, org.kie.commons.java.nio.file.AccessDeniedException, org.kie.commons.java.nio.IOException, SecurityException
checkAccess
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
org.kie.commons.java.nio.file.NoSuchFileException
org.kie.commons.java.nio.file.AccessDeniedException
org.kie.commons.java.nio.IOException
SecurityException
public org.kie.commons.java.nio.file.FileStore getFileStore(org.kie.commons.java.nio.file.Path path) throws org.kie.commons.java.nio.IOException, SecurityException
getFileStore
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.IOException
SecurityException
public <V extends org.kie.commons.java.nio.file.attribute.FileAttributeView> V getFileAttributeView(org.kie.commons.java.nio.file.Path path, Class<V> type, org.kie.commons.java.nio.file.LinkOption... options) throws org.kie.commons.java.nio.file.NoSuchFileException
getFileAttributeView
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.file.NoSuchFileException
public <A extends org.kie.commons.java.nio.file.attribute.BasicFileAttributes> A readAttributes(org.kie.commons.java.nio.file.Path path, Class<A> type, org.kie.commons.java.nio.file.LinkOption... options) throws org.kie.commons.java.nio.file.NoSuchFileException, UnsupportedOperationException, org.kie.commons.java.nio.IOException, SecurityException
readAttributes
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.file.NoSuchFileException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
public Map<String,Object> readAttributes(org.kie.commons.java.nio.file.Path path, String attributes, org.kie.commons.java.nio.file.LinkOption... options) throws UnsupportedOperationException, IllegalArgumentException, org.kie.commons.java.nio.IOException, SecurityException
readAttributes
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
public void setAttribute(org.kie.commons.java.nio.file.Path path, String attribute, Object value, org.kie.commons.java.nio.file.LinkOption... options) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, org.kie.commons.java.nio.IOException, SecurityException
setAttribute
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
IllegalArgumentException
ClassCastException
org.kie.commons.java.nio.IOException
SecurityException
public void copy(org.kie.commons.java.nio.file.Path source, org.kie.commons.java.nio.file.Path target, org.kie.commons.java.nio.file.CopyOption... options) throws UnsupportedOperationException, org.kie.commons.java.nio.file.FileAlreadyExistsException, org.kie.commons.java.nio.file.DirectoryNotEmptyException, org.kie.commons.java.nio.IOException, SecurityException
copy
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
public void move(org.kie.commons.java.nio.file.Path source, org.kie.commons.java.nio.file.Path target, org.kie.commons.java.nio.file.CopyOption... options) throws org.kie.commons.java.nio.file.DirectoryNotEmptyException, org.kie.commons.java.nio.file.AtomicMoveNotSupportedException, org.kie.commons.java.nio.IOException, SecurityException
move
in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.file.AtomicMoveNotSupportedException
org.kie.commons.java.nio.IOException
SecurityException
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.