KIE NIO.2 :: API 6.0.0.Beta4

org.kie.commons.java.nio.file
Class Files

java.lang.Object
  extended by org.kie.commons.java.nio.file.Files

public final class Files
extends Object

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

See Also:
Original JavaDoc

Method Summary
static long copy(InputStream in, org.kie.commons.java.nio.file.Path target, org.kie.commons.java.nio.file.CopyOption... options)
           
static long copy(org.kie.commons.java.nio.file.Path source, OutputStream out)
           
static org.kie.commons.java.nio.file.Path 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)
           
static org.kie.commons.java.nio.file.Path createDirectories(org.kie.commons.java.nio.file.Path dir, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
           
static org.kie.commons.java.nio.file.Path createDirectory(org.kie.commons.java.nio.file.Path dir, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
           
static org.kie.commons.java.nio.file.Path createFile(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
           
static org.kie.commons.java.nio.file.Path createLink(org.kie.commons.java.nio.file.Path link, org.kie.commons.java.nio.file.Path existing)
           
static org.kie.commons.java.nio.file.Path 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)
           
static org.kie.commons.java.nio.file.Path createTempDirectory(org.kie.commons.java.nio.file.Path dir, String prefix, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
           
static org.kie.commons.java.nio.file.Path createTempDirectory(String prefix, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
           
static org.kie.commons.java.nio.file.Path createTempFile(org.kie.commons.java.nio.file.Path dir, String prefix, String suffix, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
           
static org.kie.commons.java.nio.file.Path createTempFile(String prefix, String suffix, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
           
static void delete(org.kie.commons.java.nio.file.Path path)
           
static boolean deleteIfExists(org.kie.commons.java.nio.file.Path path)
           
static boolean exists(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.LinkOption... options)
           
static Object getAttribute(org.kie.commons.java.nio.file.Path path, String attribute, org.kie.commons.java.nio.file.LinkOption... options)
           
static
<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)
           
static org.kie.commons.java.nio.file.FileStore getFileStore(org.kie.commons.java.nio.file.Path path)
           
static org.kie.commons.java.nio.file.attribute.FileTime getLastModifiedTime(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.LinkOption... options)
           
static org.kie.commons.java.nio.file.attribute.UserPrincipal getOwner(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.LinkOption... options)
           
static Set<org.kie.commons.java.nio.file.attribute.PosixFilePermission> getPosixFilePermissions(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.LinkOption... options)
           
static boolean isDirectory(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.LinkOption... options)
           
static boolean isExecutable(org.kie.commons.java.nio.file.Path path)
           
static boolean isHidden(org.kie.commons.java.nio.file.Path path)
           
static boolean isReadable(org.kie.commons.java.nio.file.Path path)
           
static boolean isRegularFile(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.LinkOption... options)
           
static boolean isSameFile(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.Path path2)
           
static boolean isSymbolicLink(org.kie.commons.java.nio.file.Path path)
           
static boolean isWritable(org.kie.commons.java.nio.file.Path path)
           
static org.kie.commons.java.nio.file.Path 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)
           
static BufferedReader newBufferedReader(org.kie.commons.java.nio.file.Path path, Charset cs)
           
static BufferedWriter newBufferedWriter(org.kie.commons.java.nio.file.Path path, Charset cs, org.kie.commons.java.nio.file.OpenOption... options)
           
static org.kie.commons.java.nio.channels.SeekableByteChannel newByteChannel(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.OpenOption... options)
           
static 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)
           
static org.kie.commons.java.nio.file.DirectoryStream<org.kie.commons.java.nio.file.Path> newDirectoryStream(org.kie.commons.java.nio.file.Path dir)
           
static 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)
           
static org.kie.commons.java.nio.file.DirectoryStream<org.kie.commons.java.nio.file.Path> newDirectoryStream(org.kie.commons.java.nio.file.Path dir, String glob)
           
static InputStream newInputStream(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.OpenOption... options)
           
static OutputStream newOutputStream(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.OpenOption... options)
           
static boolean notExists(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.LinkOption... options)
           
static String probeContentType(org.kie.commons.java.nio.file.Path path)
           
static byte[] readAllBytes(org.kie.commons.java.nio.file.Path path)
           
static List<String> readAllLines(org.kie.commons.java.nio.file.Path path, Charset cs)
           
static
<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)
           
static Map<String,Object> readAttributes(org.kie.commons.java.nio.file.Path path, String attributes, org.kie.commons.java.nio.file.LinkOption... options)
           
static org.kie.commons.java.nio.file.Path readSymbolicLink(org.kie.commons.java.nio.file.Path link)
           
static org.kie.commons.java.nio.file.Path setAttribute(org.kie.commons.java.nio.file.Path path, String attribute, Object value, org.kie.commons.java.nio.file.LinkOption... options)
           
static org.kie.commons.java.nio.file.Path setLastModifiedTime(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.attribute.FileTime time)
           
static org.kie.commons.java.nio.file.Path setOwner(org.kie.commons.java.nio.file.Path path, org.kie.commons.java.nio.file.attribute.UserPrincipal owner)
           
static org.kie.commons.java.nio.file.Path setPosixFilePermissions(org.kie.commons.java.nio.file.Path path, Set<org.kie.commons.java.nio.file.attribute.PosixFilePermission> perms)
           
static long size(org.kie.commons.java.nio.file.Path path)
           
static org.kie.commons.java.nio.file.Path walkFileTree(org.kie.commons.java.nio.file.Path start, org.kie.commons.java.nio.file.FileVisitor<org.kie.commons.java.nio.file.Path> visitor)
           
static org.kie.commons.java.nio.file.Path walkFileTree(org.kie.commons.java.nio.file.Path start, Set<org.kie.commons.java.nio.file.FileVisitOption> options, int maxDepth, org.kie.commons.java.nio.file.FileVisitor<org.kie.commons.java.nio.file.Path> visitor)
           
static org.kie.commons.java.nio.file.Path write(org.kie.commons.java.nio.file.Path path, byte[] bytes, org.kie.commons.java.nio.file.OpenOption... options)
           
static org.kie.commons.java.nio.file.Path write(org.kie.commons.java.nio.file.Path path, Iterable<? extends CharSequence> lines, Charset cs, org.kie.commons.java.nio.file.OpenOption... options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInputStream

public static 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,
                                         UnsupportedOperationException,
                                         org.kie.commons.java.nio.IOException,
                                         SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
NoSuchFileException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

newOutputStream

public static 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
Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

newByteChannel

public static org.kie.commons.java.nio.channels.SeekableByteChannel newByteChannel(org.kie.commons.java.nio.file.Path path,
                                                                                   org.kie.commons.java.nio.file.OpenOption... options)
                                                                            throws IllegalArgumentException,
                                                                                   UnsupportedOperationException,
                                                                                   org.kie.commons.java.nio.file.FileAlreadyExistsException,
                                                                                   org.kie.commons.java.nio.IOException,
                                                                                   SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

newByteChannel

public static 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
Throws:
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

newDirectoryStream

public static org.kie.commons.java.nio.file.DirectoryStream<org.kie.commons.java.nio.file.Path> newDirectoryStream(org.kie.commons.java.nio.file.Path dir)
                                                                                                            throws IllegalArgumentException,
                                                                                                                   org.kie.commons.java.nio.file.NotDirectoryException,
                                                                                                                   org.kie.commons.java.nio.IOException,
                                                                                                                   SecurityException
Throws:
IllegalArgumentException
NotDirectoryException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

newDirectoryStream

public static org.kie.commons.java.nio.file.DirectoryStream<org.kie.commons.java.nio.file.Path> newDirectoryStream(org.kie.commons.java.nio.file.Path dir,
                                                                                                                   String glob)
                                                                                                            throws IllegalArgumentException,
                                                                                                                   UnsupportedOperationException,
                                                                                                                   PatternSyntaxException,
                                                                                                                   org.kie.commons.java.nio.file.NotDirectoryException,
                                                                                                                   org.kie.commons.java.nio.IOException,
                                                                                                                   SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
PatternSyntaxException
org.kie.commons.java.nio.file.NotDirectoryException
org.kie.commons.java.nio.IOException
SecurityException

newDirectoryStream

public static 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 IllegalArgumentException,
                                                                                                                   org.kie.commons.java.nio.file.NotDirectoryException,
                                                                                                                   org.kie.commons.java.nio.IOException,
                                                                                                                   SecurityException
Throws:
IllegalArgumentException
NotDirectoryException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

createFile

public static org.kie.commons.java.nio.file.Path createFile(org.kie.commons.java.nio.file.Path path,
                                                            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
Throws:
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

createDirectory

public static org.kie.commons.java.nio.file.Path createDirectory(org.kie.commons.java.nio.file.Path dir,
                                                                 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
Throws:
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

createDirectories

public static org.kie.commons.java.nio.file.Path createDirectories(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
Throws:
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException

createSymbolicLink

public static org.kie.commons.java.nio.file.Path 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 IllegalArgumentException,
                                                                    UnsupportedOperationException,
                                                                    org.kie.commons.java.nio.file.FileAlreadyExistsException,
                                                                    org.kie.commons.java.nio.IOException,
                                                                    SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

createLink

public static org.kie.commons.java.nio.file.Path createLink(org.kie.commons.java.nio.file.Path link,
                                                            org.kie.commons.java.nio.file.Path existing)
                                                     throws IllegalArgumentException,
                                                            UnsupportedOperationException,
                                                            org.kie.commons.java.nio.file.FileAlreadyExistsException,
                                                            org.kie.commons.java.nio.IOException,
                                                            SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

delete

public static void delete(org.kie.commons.java.nio.file.Path path)
                   throws IllegalArgumentException,
                          org.kie.commons.java.nio.file.NoSuchFileException,
                          org.kie.commons.java.nio.file.DirectoryNotEmptyException,
                          org.kie.commons.java.nio.IOException,
                          SecurityException
Throws:
IllegalArgumentException
NoSuchFileException
DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

deleteIfExists

public static boolean deleteIfExists(org.kie.commons.java.nio.file.Path path)
                              throws IllegalArgumentException,
                                     org.kie.commons.java.nio.file.DirectoryNotEmptyException,
                                     org.kie.commons.java.nio.IOException,
                                     SecurityException
Throws:
IllegalArgumentException
DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

createTempFile

public static org.kie.commons.java.nio.file.Path createTempFile(String prefix,
                                                                String suffix,
                                                                org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
                                                         throws IllegalArgumentException,
                                                                UnsupportedOperationException,
                                                                org.kie.commons.java.nio.IOException,
                                                                SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException

createTempFile

public static org.kie.commons.java.nio.file.Path createTempFile(org.kie.commons.java.nio.file.Path dir,
                                                                String prefix,
                                                                String suffix,
                                                                org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
                                                         throws IllegalArgumentException,
                                                                UnsupportedOperationException,
                                                                org.kie.commons.java.nio.IOException,
                                                                SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException

createTempDirectory

public static org.kie.commons.java.nio.file.Path createTempDirectory(String prefix,
                                                                     org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
                                                              throws IllegalArgumentException,
                                                                     UnsupportedOperationException,
                                                                     org.kie.commons.java.nio.IOException,
                                                                     SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException

createTempDirectory

public static org.kie.commons.java.nio.file.Path createTempDirectory(org.kie.commons.java.nio.file.Path dir,
                                                                     String prefix,
                                                                     org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
                                                              throws IllegalArgumentException,
                                                                     UnsupportedOperationException,
                                                                     org.kie.commons.java.nio.IOException,
                                                                     SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException

copy

public static org.kie.commons.java.nio.file.Path 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
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 static org.kie.commons.java.nio.file.Path 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 UnsupportedOperationException,
                                                      org.kie.commons.java.nio.file.FileAlreadyExistsException,
                                                      org.kie.commons.java.nio.file.DirectoryNotEmptyException,
                                                      org.kie.commons.java.nio.file.AtomicMoveNotSupportedException,
                                                      org.kie.commons.java.nio.IOException,
                                                      SecurityException
Throws:
UnsupportedOperationException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.file.DirectoryNotEmptyException
org.kie.commons.java.nio.file.AtomicMoveNotSupportedException
org.kie.commons.java.nio.IOException
SecurityException

readSymbolicLink

public static org.kie.commons.java.nio.file.Path readSymbolicLink(org.kie.commons.java.nio.file.Path link)
                                                           throws IllegalArgumentException,
                                                                  UnsupportedOperationException,
                                                                  org.kie.commons.java.nio.file.NotLinkException,
                                                                  org.kie.commons.java.nio.IOException,
                                                                  SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
NotLinkException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

getFileStore

public static org.kie.commons.java.nio.file.FileStore getFileStore(org.kie.commons.java.nio.file.Path path)
                                                            throws IllegalArgumentException,
                                                                   org.kie.commons.java.nio.IOException,
                                                                   SecurityException
Throws:
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

probeContentType

public static String probeContentType(org.kie.commons.java.nio.file.Path path)
                               throws UnsupportedOperationException,
                                      org.kie.commons.java.nio.IOException,
                                      SecurityException
Throws:
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException

getFileAttributeView

public static <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 IllegalArgumentException
Throws:
IllegalArgumentException
See Also:
Original JavaDoc

readAttributes

public static <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 IllegalArgumentException,
                                                                                                   org.kie.commons.java.nio.file.NoSuchFileException,
                                                                                                   UnsupportedOperationException,
                                                                                                   org.kie.commons.java.nio.IOException,
                                                                                                   SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
org.kie.commons.java.nio.file.NoSuchFileException
See Also:
Original JavaDoc

readAttributes

public static Map<String,Object> readAttributes(org.kie.commons.java.nio.file.Path path,
                                                String attributes,
                                                org.kie.commons.java.nio.file.LinkOption... options)
                                         throws UnsupportedOperationException,
                                                org.kie.commons.java.nio.file.NoSuchFileException,
                                                IllegalArgumentException,
                                                org.kie.commons.java.nio.IOException,
                                                SecurityException
Throws:
UnsupportedOperationException
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
org.kie.commons.java.nio.file.NoSuchFileException
See Also:
Original JavaDoc

setAttribute

public static org.kie.commons.java.nio.file.Path 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
Throws:
UnsupportedOperationException
IllegalArgumentException
ClassCastException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

getAttribute

public static Object getAttribute(org.kie.commons.java.nio.file.Path path,
                                  String attribute,
                                  org.kie.commons.java.nio.file.LinkOption... options)
                           throws UnsupportedOperationException,
                                  IllegalArgumentException,
                                  org.kie.commons.java.nio.IOException,
                                  SecurityException
Throws:
UnsupportedOperationException
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException

getPosixFilePermissions

public static Set<org.kie.commons.java.nio.file.attribute.PosixFilePermission> getPosixFilePermissions(org.kie.commons.java.nio.file.Path path,
                                                                                                       org.kie.commons.java.nio.file.LinkOption... options)
                                                                                                throws UnsupportedOperationException,
                                                                                                       org.kie.commons.java.nio.IOException,
                                                                                                       SecurityException
Throws:
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException

setPosixFilePermissions

public static org.kie.commons.java.nio.file.Path setPosixFilePermissions(org.kie.commons.java.nio.file.Path path,
                                                                         Set<org.kie.commons.java.nio.file.attribute.PosixFilePermission> perms)
                                                                  throws UnsupportedOperationException,
                                                                         ClassCastException,
                                                                         org.kie.commons.java.nio.IOException,
                                                                         SecurityException
Throws:
UnsupportedOperationException
ClassCastException
org.kie.commons.java.nio.IOException
SecurityException

getOwner

public static org.kie.commons.java.nio.file.attribute.UserPrincipal getOwner(org.kie.commons.java.nio.file.Path path,
                                                                             org.kie.commons.java.nio.file.LinkOption... options)
                                                                      throws UnsupportedOperationException,
                                                                             org.kie.commons.java.nio.IOException,
                                                                             SecurityException
Throws:
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException

setOwner

public static org.kie.commons.java.nio.file.Path setOwner(org.kie.commons.java.nio.file.Path path,
                                                          org.kie.commons.java.nio.file.attribute.UserPrincipal owner)
                                                   throws UnsupportedOperationException,
                                                          org.kie.commons.java.nio.IOException,
                                                          SecurityException
Throws:
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException

getLastModifiedTime

public static org.kie.commons.java.nio.file.attribute.FileTime getLastModifiedTime(org.kie.commons.java.nio.file.Path path,
                                                                                   org.kie.commons.java.nio.file.LinkOption... options)
                                                                            throws IllegalArgumentException,
                                                                                   org.kie.commons.java.nio.IOException,
                                                                                   SecurityException
Throws:
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

setLastModifiedTime

public static org.kie.commons.java.nio.file.Path setLastModifiedTime(org.kie.commons.java.nio.file.Path path,
                                                                     org.kie.commons.java.nio.file.attribute.FileTime time)
                                                              throws org.kie.commons.java.nio.IOException,
                                                                     SecurityException
Throws:
org.kie.commons.java.nio.IOException
SecurityException

size

public static long size(org.kie.commons.java.nio.file.Path path)
                 throws IllegalArgumentException,
                        org.kie.commons.java.nio.IOException,
                        SecurityException
Throws:
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

exists

public static boolean exists(org.kie.commons.java.nio.file.Path path,
                             org.kie.commons.java.nio.file.LinkOption... options)
                      throws IllegalArgumentException,
                             SecurityException
Throws:
IllegalArgumentException
SecurityException
See Also:
Original JavaDoc

notExists

public static boolean notExists(org.kie.commons.java.nio.file.Path path,
                                org.kie.commons.java.nio.file.LinkOption... options)
                         throws IllegalArgumentException,
                                SecurityException
Throws:
IllegalArgumentException
SecurityException
See Also:
Original JavaDoc

isSameFile

public static boolean isSameFile(org.kie.commons.java.nio.file.Path path,
                                 org.kie.commons.java.nio.file.Path path2)
                          throws IllegalArgumentException,
                                 org.kie.commons.java.nio.IOException,
                                 SecurityException
Throws:
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

isHidden

public static boolean isHidden(org.kie.commons.java.nio.file.Path path)
                        throws IllegalArgumentException,
                               org.kie.commons.java.nio.IOException,
                               SecurityException
Throws:
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

isReadable

public static boolean isReadable(org.kie.commons.java.nio.file.Path path)
                          throws IllegalArgumentException,
                                 SecurityException
Throws:
IllegalArgumentException
SecurityException
See Also:
Original JavaDoc

isWritable

public static boolean isWritable(org.kie.commons.java.nio.file.Path path)
                          throws IllegalArgumentException,
                                 SecurityException
Throws:
IllegalArgumentException
SecurityException
See Also:
Original JavaDoc

isExecutable

public static boolean isExecutable(org.kie.commons.java.nio.file.Path path)
                            throws IllegalArgumentException,
                                   SecurityException
Throws:
IllegalArgumentException
SecurityException
See Also:
Original JavaDoc

isSymbolicLink

public static boolean isSymbolicLink(org.kie.commons.java.nio.file.Path path)
                              throws IllegalArgumentException,
                                     SecurityException
Throws:
IllegalArgumentException
SecurityException
See Also:
Original JavaDoc

isDirectory

public static boolean isDirectory(org.kie.commons.java.nio.file.Path path,
                                  org.kie.commons.java.nio.file.LinkOption... options)
                           throws IllegalArgumentException,
                                  SecurityException
Throws:
IllegalArgumentException
SecurityException
See Also:
Original JavaDoc

isRegularFile

public static boolean isRegularFile(org.kie.commons.java.nio.file.Path path,
                                    org.kie.commons.java.nio.file.LinkOption... options)
                             throws IllegalAccessError,
                                    SecurityException
Throws:
IllegalAccessError
SecurityException
See Also:
Original JavaDoc

walkFileTree

public static org.kie.commons.java.nio.file.Path walkFileTree(org.kie.commons.java.nio.file.Path start,
                                                              Set<org.kie.commons.java.nio.file.FileVisitOption> options,
                                                              int maxDepth,
                                                              org.kie.commons.java.nio.file.FileVisitor<org.kie.commons.java.nio.file.Path> visitor)
                                                       throws IllegalArgumentException,
                                                              SecurityException,
                                                              org.kie.commons.java.nio.IOException
Throws:
IllegalArgumentException
SecurityException
org.kie.commons.java.nio.IOException

walkFileTree

public static org.kie.commons.java.nio.file.Path walkFileTree(org.kie.commons.java.nio.file.Path start,
                                                              org.kie.commons.java.nio.file.FileVisitor<org.kie.commons.java.nio.file.Path> visitor)
                                                       throws IllegalArgumentException,
                                                              org.kie.commons.java.nio.IOException,
                                                              SecurityException
Throws:
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

newBufferedReader

public static BufferedReader newBufferedReader(org.kie.commons.java.nio.file.Path path,
                                               Charset cs)
                                        throws IllegalArgumentException,
                                               org.kie.commons.java.nio.file.NoSuchFileException,
                                               org.kie.commons.java.nio.IOException,
                                               SecurityException
Throws:
IllegalArgumentException
NoSuchFileException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

newBufferedWriter

public static BufferedWriter newBufferedWriter(org.kie.commons.java.nio.file.Path path,
                                               Charset cs,
                                               org.kie.commons.java.nio.file.OpenOption... options)
                                        throws IllegalArgumentException,
                                               org.kie.commons.java.nio.IOException,
                                               UnsupportedOperationException,
                                               SecurityException
Throws:
IllegalArgumentException
org.kie.commons.java.nio.IOException
UnsupportedOperationException
SecurityException
See Also:
Original JavaDoc

copy

public static long copy(InputStream in,
                        org.kie.commons.java.nio.file.Path target,
                        org.kie.commons.java.nio.file.CopyOption... options)
                 throws org.kie.commons.java.nio.IOException,
                        org.kie.commons.java.nio.file.FileAlreadyExistsException,
                        org.kie.commons.java.nio.file.DirectoryNotEmptyException,
                        UnsupportedOperationException,
                        SecurityException
Throws:
org.kie.commons.java.nio.IOException
org.kie.commons.java.nio.file.FileAlreadyExistsException
org.kie.commons.java.nio.file.DirectoryNotEmptyException
UnsupportedOperationException
SecurityException

copy

public static long copy(org.kie.commons.java.nio.file.Path source,
                        OutputStream out)
                 throws org.kie.commons.java.nio.IOException,
                        SecurityException
Throws:
org.kie.commons.java.nio.IOException
SecurityException

readAllBytes

public static byte[] readAllBytes(org.kie.commons.java.nio.file.Path path)
                           throws org.kie.commons.java.nio.IOException,
                                  OutOfMemoryError,
                                  SecurityException
Throws:
org.kie.commons.java.nio.IOException
OutOfMemoryError
SecurityException

readAllLines

public static List<String> readAllLines(org.kie.commons.java.nio.file.Path path,
                                        Charset cs)
                                 throws IllegalArgumentException,
                                        org.kie.commons.java.nio.file.NoSuchFileException,
                                        org.kie.commons.java.nio.IOException,
                                        SecurityException
Throws:
IllegalArgumentException
NoSuchFileException
org.kie.commons.java.nio.IOException
SecurityException
See Also:
Original JavaDoc

write

public static org.kie.commons.java.nio.file.Path write(org.kie.commons.java.nio.file.Path path,
                                                       byte[] bytes,
                                                       org.kie.commons.java.nio.file.OpenOption... options)
                                                throws org.kie.commons.java.nio.IOException,
                                                       UnsupportedOperationException,
                                                       SecurityException
Throws:
org.kie.commons.java.nio.IOException
UnsupportedOperationException
SecurityException

write

public static org.kie.commons.java.nio.file.Path write(org.kie.commons.java.nio.file.Path path,
                                                       Iterable<? extends CharSequence> lines,
                                                       Charset cs,
                                                       org.kie.commons.java.nio.file.OpenOption... options)
                                                throws IllegalArgumentException,
                                                       org.kie.commons.java.nio.IOException,
                                                       UnsupportedOperationException,
                                                       SecurityException
Throws:
IllegalArgumentException
org.kie.commons.java.nio.IOException
UnsupportedOperationException
SecurityException
See Also:
Original JavaDoc

KIE NIO.2 :: API 6.0.0.Beta4

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