KIE NIO.2 :: File System Impl 6.0.0.Beta5

org.kie.commons.java.nio.fs.file
Class SimpleFileSystemProvider

java.lang.Object
  extended by org.kie.commons.java.nio.fs.file.SimpleFileSystemProvider
All Implemented Interfaces:
org.kie.commons.java.nio.file.spi.FileSystemProvider

public class SimpleFileSystemProvider
extends Object
implements org.kie.commons.java.nio.file.spi.FileSystemProvider


Constructor Summary
SimpleFileSystemProvider()
           
 
Method Summary
 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>
V
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>
A
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFileSystemProvider

public SimpleFileSystemProvider()
Method Detail

forceAsDefault

public void forceAsDefault()
Specified by:
forceAsDefault in interface org.kie.commons.java.nio.file.spi.FileSystemProvider

isDefault

public boolean isDefault()
Specified by:
isDefault in interface org.kie.commons.java.nio.file.spi.FileSystemProvider

getScheme

public String getScheme()
Specified by:
getScheme in interface org.kie.commons.java.nio.file.spi.FileSystemProvider

getFileSystem

public org.kie.commons.java.nio.file.FileSystem getFileSystem(URI uri)
                                                       throws IllegalArgumentException,
                                                              org.kie.commons.java.nio.file.FileSystemNotFoundException,
                                                              SecurityException
Specified by:
getFileSystem in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
IllegalArgumentException
org.kie.commons.java.nio.file.FileSystemNotFoundException
SecurityException

getPath

public org.kie.commons.java.nio.file.Path getPath(URI uri)
                                           throws IllegalArgumentException,
                                                  org.kie.commons.java.nio.file.FileSystemNotFoundException,
                                                  SecurityException
Specified by:
getPath in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
IllegalArgumentException
org.kie.commons.java.nio.file.FileSystemNotFoundException
SecurityException

newFileSystem

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
Specified by:
newFileSystem in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
org.kie.commons.java.nio.file.FileSystemAlreadyExistsException

newFileSystem

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
Specified by:
newFileSystem in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException

newInputStream

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
Specified by:
newInputStream in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
IllegalArgumentException
org.kie.commons.java.nio.file.NoSuchFileException
org.kie.commons.java.nio.IOException
SecurityException

newOutputStream

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
Specified by:
newOutputStream in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException

newFileChannel

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
Specified by:
newFileChannel in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException

newAsynchronousFileChannel

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
Specified by:
newAsynchronousFileChannel in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException

newByteChannel

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
Specified by:
newByteChannel in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException

createDirectory

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
Specified by:
createDirectory in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException

newDirectoryStream

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
Specified by:
newDirectoryStream in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
org.kie.commons.java.nio.file.NotDirectoryException
org.kie.commons.java.nio.IOException
SecurityException

createSymbolicLink

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
Specified by:
createSymbolicLink in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException

createLink

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
Specified by:
createLink in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException

delete

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
Specified by:
delete in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
org.kie.commons.java.nio.file.NoSuchFileException
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException

deleteIfExists

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
Specified by:
deleteIfExists in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException

readSymbolicLink

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
Specified by:
readSymbolicLink in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
UnsupportedOperationException
org.kie.commons.java.nio.file.NotLinkException
org.kie.commons.java.nio.IOException
SecurityException

isSameFile

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
Specified by:
isSameFile in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
org.kie.commons.java.nio.IOException
SecurityException

isHidden

public boolean isHidden(org.kie.commons.java.nio.file.Path path)
                 throws IllegalArgumentException,
                        org.kie.commons.java.nio.IOException,
                        SecurityException
Specified by:
isHidden in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException

checkAccess

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
Specified by:
checkAccess in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
UnsupportedOperationException
org.kie.commons.java.nio.file.NoSuchFileException
org.kie.commons.java.nio.file.AccessDeniedException
org.kie.commons.java.nio.IOException
SecurityException

getFileStore

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
Specified by:
getFileStore in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
org.kie.commons.java.nio.IOException
SecurityException

getFileAttributeView

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
Specified by:
getFileAttributeView in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
org.kie.commons.java.nio.file.NoSuchFileException

readAttributes

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
Specified by:
readAttributes in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
org.kie.commons.java.nio.file.NoSuchFileException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException

readAttributes

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
Specified by:
readAttributes in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
UnsupportedOperationException
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException

setAttribute

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
Specified by:
setAttribute in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
UnsupportedOperationException
IllegalArgumentException
ClassCastException
org.kie.commons.java.nio.IOException
SecurityException

copy

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
Specified by:
copy in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException

move

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
Specified by:
move in interface org.kie.commons.java.nio.file.spi.FileSystemProvider
Throws:
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.file.AtomicMoveNotSupportedException
org.kie.commons.java.nio.IOException
SecurityException

KIE NIO.2 :: File System Impl 6.0.0.Beta5

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