KIE NIO.2 :: Model 6.0.0.CR4-Pre1

org.kie.commons.java.nio.file.spi
Interface FileSystemProvider


public interface FileSystemProvider

Back port of JSR-203 from Java Platform, Standard Edition 7.

See Also:
Original JavaDoc

Method Summary
 void checkAccess(Path path, AccessMode... modes)
           
 void copy(Path source, Path target, CopyOption... options)
           
 void createDirectory(Path dir, FileAttribute<?>... attrs)
           
 void createLink(Path link, Path existing)
           
 void createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs)
           
 void delete(Path path)
           
 boolean deleteIfExists(Path path)
           
 void forceAsDefault()
           
<V extends FileAttributeView>
V
getFileAttributeView(Path path, Class<V> type, LinkOption... options)
           
 FileStore getFileStore(Path path)
           
 FileSystem getFileSystem(URI uri)
           
 Path getPath(URI uri)
           
 String getScheme()
           
 boolean isDefault()
           
 boolean isHidden(Path path)
           
 boolean isSameFile(Path path, Path path2)
           
 void move(Path source, Path target, CopyOption... options)
           
 AsynchronousFileChannel newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs)
           
 SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)
           
 DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<Path> filter)
           
 FileChannel newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)
           
 FileSystem newFileSystem(Path path, Map<String,?> env)
           
 FileSystem newFileSystem(URI uri, Map<String,?> env)
           
 InputStream newInputStream(Path path, OpenOption... options)
           
 OutputStream newOutputStream(Path path, OpenOption... options)
           
<A extends BasicFileAttributes>
A
readAttributes(Path path, Class<A> type, LinkOption... options)
           
 Map<String,Object> readAttributes(Path path, String attributes, LinkOption... options)
           
 Path readSymbolicLink(Path link)
           
 void setAttribute(Path path, String attribute, Object value, LinkOption... options)
           
 

Method Detail

forceAsDefault

void forceAsDefault()

isDefault

boolean isDefault()

getScheme

String getScheme()

newFileSystem

FileSystem newFileSystem(URI uri,
                         Map<String,?> env)
                         throws IllegalArgumentException,
                                IOException,
                                SecurityException,
                                FileSystemAlreadyExistsException
Throws:
IllegalArgumentException
IOException
SecurityException
FileSystemAlreadyExistsException

getFileSystem

FileSystem getFileSystem(URI uri)
                         throws IllegalArgumentException,
                                FileSystemNotFoundException,
                                SecurityException
Throws:
IllegalArgumentException
FileSystemNotFoundException
SecurityException

getPath

Path getPath(URI uri)
             throws IllegalArgumentException,
                    FileSystemNotFoundException,
                    SecurityException
Throws:
IllegalArgumentException
FileSystemNotFoundException
SecurityException

newFileSystem

FileSystem newFileSystem(Path path,
                         Map<String,?> env)
                         throws IllegalArgumentException,
                                UnsupportedOperationException,
                                IOException,
                                SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
IOException
SecurityException

newInputStream

InputStream newInputStream(Path path,
                           OpenOption... options)
                           throws IllegalArgumentException,
                                  UnsupportedOperationException,
                                  NoSuchFileException,
                                  IOException,
                                  SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
NoSuchFileException
IOException
SecurityException

newOutputStream

OutputStream newOutputStream(Path path,
                             OpenOption... options)
                             throws IllegalArgumentException,
                                    UnsupportedOperationException,
                                    IOException,
                                    SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
IOException
SecurityException

newFileChannel

FileChannel newFileChannel(Path path,
                           Set<? extends OpenOption> options,
                           FileAttribute<?>... attrs)
                           throws IllegalArgumentException,
                                  UnsupportedOperationException,
                                  IOException,
                                  SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
IOException
SecurityException

newAsynchronousFileChannel

AsynchronousFileChannel newAsynchronousFileChannel(Path path,
                                                   Set<? extends OpenOption> options,
                                                   ExecutorService executor,
                                                   FileAttribute<?>... attrs)
                                                   throws IllegalArgumentException,
                                                          UnsupportedOperationException,
                                                          IOException,
                                                          SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
IOException
SecurityException

newByteChannel

SeekableByteChannel newByteChannel(Path path,
                                   Set<? extends OpenOption> options,
                                   FileAttribute<?>... attrs)
                                   throws IllegalArgumentException,
                                          UnsupportedOperationException,
                                          FileAlreadyExistsException,
                                          IOException,
                                          SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException

newDirectoryStream

DirectoryStream<Path> newDirectoryStream(Path dir,
                                         DirectoryStream.Filter<Path> filter)
                                         throws NotDirectoryException,
                                                IOException,
                                                SecurityException
Throws:
NotDirectoryException
IOException
SecurityException

createDirectory

void createDirectory(Path dir,
                     FileAttribute<?>... attrs)
                     throws UnsupportedOperationException,
                            FileAlreadyExistsException,
                            IOException,
                            SecurityException
Throws:
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException

createSymbolicLink

void createSymbolicLink(Path link,
                        Path target,
                        FileAttribute<?>... attrs)
                        throws UnsupportedOperationException,
                               FileAlreadyExistsException,
                               IOException,
                               SecurityException
Throws:
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException

createLink

void createLink(Path link,
                Path existing)
                throws UnsupportedOperationException,
                       FileAlreadyExistsException,
                       IOException,
                       SecurityException
Throws:
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException

delete

void delete(Path path)
            throws DirectoryNotEmptyException,
                   NoSuchFileException,
                   IOException,
                   SecurityException
Throws:
DirectoryNotEmptyException
NoSuchFileException
IOException
SecurityException

deleteIfExists

boolean deleteIfExists(Path path)
                       throws DirectoryNotEmptyException,
                              IOException,
                              SecurityException
Throws:
DirectoryNotEmptyException
IOException
SecurityException

readSymbolicLink

Path readSymbolicLink(Path link)
                      throws UnsupportedOperationException,
                             NotLinkException,
                             IOException,
                             SecurityException
Throws:
UnsupportedOperationException
NotLinkException
IOException
SecurityException

copy

void copy(Path source,
          Path target,
          CopyOption... options)
          throws UnsupportedOperationException,
                 FileAlreadyExistsException,
                 DirectoryNotEmptyException,
                 IOException,
                 SecurityException
Throws:
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
IOException
SecurityException

move

void move(Path source,
          Path target,
          CopyOption... options)
          throws DirectoryNotEmptyException,
                 AtomicMoveNotSupportedException,
                 IOException,
                 SecurityException
Throws:
DirectoryNotEmptyException
AtomicMoveNotSupportedException
IOException
SecurityException

isSameFile

boolean isSameFile(Path path,
                   Path path2)
                   throws IOException,
                          SecurityException
Throws:
IOException
SecurityException

isHidden

boolean isHidden(Path path)
                 throws IllegalArgumentException,
                        IOException,
                        SecurityException
Throws:
IllegalArgumentException
IOException
SecurityException

getFileStore

FileStore getFileStore(Path path)
                       throws IOException,
                              SecurityException
Throws:
IOException
SecurityException

checkAccess

void checkAccess(Path path,
                 AccessMode... modes)
                 throws UnsupportedOperationException,
                        NoSuchFileException,
                        AccessDeniedException,
                        IOException,
                        SecurityException
Throws:
UnsupportedOperationException
NoSuchFileException
AccessDeniedException
IOException
SecurityException

getFileAttributeView

<V extends FileAttributeView> V getFileAttributeView(Path path,
                                                     Class<V> type,
                                                     LinkOption... options)
                                                 throws NoSuchFileException
Throws:
NoSuchFileException

readAttributes

<A extends BasicFileAttributes> A readAttributes(Path path,
                                                 Class<A> type,
                                                 LinkOption... options)
                                             throws NoSuchFileException,
                                                    UnsupportedOperationException,
                                                    IOException,
                                                    SecurityException
Throws:
NoSuchFileException
UnsupportedOperationException
IOException
SecurityException

readAttributes

Map<String,Object> readAttributes(Path path,
                                  String attributes,
                                  LinkOption... options)
                                  throws UnsupportedOperationException,
                                         IllegalArgumentException,
                                         IOException,
                                         SecurityException
Throws:
UnsupportedOperationException
IllegalArgumentException
IOException
SecurityException

setAttribute

void setAttribute(Path path,
                  String attribute,
                  Object value,
                  LinkOption... options)
                  throws UnsupportedOperationException,
                         IllegalArgumentException,
                         ClassCastException,
                         IOException,
                         SecurityException
Throws:
UnsupportedOperationException
IllegalArgumentException
ClassCastException
IOException
SecurityException

KIE NIO.2 :: Model 6.0.0.CR4-Pre1

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.