public final class Files extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
copy(InputStream in,
org.uberfire.java.nio.file.Path target,
org.uberfire.java.nio.file.CopyOption... options) |
static long |
copy(org.uberfire.java.nio.file.Path source,
OutputStream out) |
static org.uberfire.java.nio.file.Path |
copy(org.uberfire.java.nio.file.Path source,
org.uberfire.java.nio.file.Path target,
org.uberfire.java.nio.file.CopyOption... options) |
static org.uberfire.java.nio.file.Path |
createDirectories(org.uberfire.java.nio.file.Path dir,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
static org.uberfire.java.nio.file.Path |
createDirectory(org.uberfire.java.nio.file.Path dir,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
static org.uberfire.java.nio.file.Path |
createFile(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
static org.uberfire.java.nio.file.Path |
createLink(org.uberfire.java.nio.file.Path link,
org.uberfire.java.nio.file.Path existing) |
static org.uberfire.java.nio.file.Path |
createSymbolicLink(org.uberfire.java.nio.file.Path link,
org.uberfire.java.nio.file.Path target,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
static org.uberfire.java.nio.file.Path |
createTempDirectory(org.uberfire.java.nio.file.Path dir,
String prefix,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
static org.uberfire.java.nio.file.Path |
createTempDirectory(String prefix,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
static org.uberfire.java.nio.file.Path |
createTempFile(org.uberfire.java.nio.file.Path dir,
String prefix,
String suffix,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
static org.uberfire.java.nio.file.Path |
createTempFile(String prefix,
String suffix,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
static void |
delete(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.DeleteOption... options) |
static boolean |
deleteIfExists(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.DeleteOption... options) |
static boolean |
exists(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.LinkOption... options) |
static Object |
getAttribute(org.uberfire.java.nio.file.Path path,
String attribute,
org.uberfire.java.nio.file.LinkOption... options) |
static <V extends org.uberfire.java.nio.file.attribute.FileAttributeView> |
getFileAttributeView(org.uberfire.java.nio.file.Path path,
Class<V> type,
org.uberfire.java.nio.file.LinkOption... options) |
static org.uberfire.java.nio.file.FileStore |
getFileStore(org.uberfire.java.nio.file.Path path) |
static org.uberfire.java.nio.file.attribute.FileTime |
getLastModifiedTime(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.LinkOption... options) |
static org.uberfire.java.nio.file.attribute.UserPrincipal |
getOwner(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.LinkOption... options) |
static Set<org.uberfire.java.nio.file.attribute.PosixFilePermission> |
getPosixFilePermissions(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.LinkOption... options) |
static boolean |
isDirectory(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.LinkOption... options) |
static boolean |
isExecutable(org.uberfire.java.nio.file.Path path) |
static boolean |
isHidden(org.uberfire.java.nio.file.Path path) |
static boolean |
isReadable(org.uberfire.java.nio.file.Path path) |
static boolean |
isRegularFile(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.LinkOption... options) |
static boolean |
isSameFile(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.Path path2) |
static boolean |
isSymbolicLink(org.uberfire.java.nio.file.Path path) |
static boolean |
isWritable(org.uberfire.java.nio.file.Path path) |
static org.uberfire.java.nio.file.Path |
move(org.uberfire.java.nio.file.Path source,
org.uberfire.java.nio.file.Path target,
org.uberfire.java.nio.file.CopyOption... options) |
static BufferedReader |
newBufferedReader(org.uberfire.java.nio.file.Path path,
Charset cs) |
static BufferedWriter |
newBufferedWriter(org.uberfire.java.nio.file.Path path,
Charset cs,
org.uberfire.java.nio.file.OpenOption... options) |
static org.uberfire.java.nio.channels.SeekableByteChannel |
newByteChannel(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.OpenOption... options) |
static org.uberfire.java.nio.channels.SeekableByteChannel |
newByteChannel(org.uberfire.java.nio.file.Path path,
Set<? extends org.uberfire.java.nio.file.OpenOption> options,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
static org.uberfire.java.nio.file.DirectoryStream<org.uberfire.java.nio.file.Path> |
newDirectoryStream(org.uberfire.java.nio.file.Path dir) |
static org.uberfire.java.nio.file.DirectoryStream<org.uberfire.java.nio.file.Path> |
newDirectoryStream(org.uberfire.java.nio.file.Path dir,
org.uberfire.java.nio.file.DirectoryStream.Filter<org.uberfire.java.nio.file.Path> filter) |
static org.uberfire.java.nio.file.DirectoryStream<org.uberfire.java.nio.file.Path> |
newDirectoryStream(org.uberfire.java.nio.file.Path dir,
String glob) |
static InputStream |
newInputStream(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.OpenOption... options) |
static OutputStream |
newOutputStream(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.OpenOption... options) |
static boolean |
notExists(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.LinkOption... options) |
static String |
probeContentType(org.uberfire.java.nio.file.Path path) |
static byte[] |
readAllBytes(org.uberfire.java.nio.file.Path path) |
static List<String> |
readAllLines(org.uberfire.java.nio.file.Path path,
Charset cs) |
static <A extends org.uberfire.java.nio.file.attribute.BasicFileAttributes> |
readAttributes(org.uberfire.java.nio.file.Path path,
Class<A> type,
org.uberfire.java.nio.file.LinkOption... options) |
static Map<String,Object> |
readAttributes(org.uberfire.java.nio.file.Path path,
String attributes,
org.uberfire.java.nio.file.LinkOption... options) |
static org.uberfire.java.nio.file.Path |
readSymbolicLink(org.uberfire.java.nio.file.Path link) |
static org.uberfire.java.nio.file.Path |
setAttribute(org.uberfire.java.nio.file.Path path,
String attribute,
Object value,
org.uberfire.java.nio.file.LinkOption... options) |
static org.uberfire.java.nio.file.Path |
setLastModifiedTime(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.attribute.FileTime time) |
static org.uberfire.java.nio.file.Path |
setOwner(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.attribute.UserPrincipal owner) |
static org.uberfire.java.nio.file.Path |
setPosixFilePermissions(org.uberfire.java.nio.file.Path path,
Set<org.uberfire.java.nio.file.attribute.PosixFilePermission> perms) |
static long |
size(org.uberfire.java.nio.file.Path path) |
static org.uberfire.java.nio.file.Path |
walkFileTree(org.uberfire.java.nio.file.Path start,
org.uberfire.java.nio.file.FileVisitor<org.uberfire.java.nio.file.Path> visitor) |
static org.uberfire.java.nio.file.Path |
walkFileTree(org.uberfire.java.nio.file.Path start,
Set<org.uberfire.java.nio.file.FileVisitOption> options,
int maxDepth,
org.uberfire.java.nio.file.FileVisitor<org.uberfire.java.nio.file.Path> visitor) |
static org.uberfire.java.nio.file.Path |
write(org.uberfire.java.nio.file.Path path,
byte[] bytes,
org.uberfire.java.nio.file.OpenOption... options) |
static org.uberfire.java.nio.file.Path |
write(org.uberfire.java.nio.file.Path path,
Iterable<? extends CharSequence> lines,
Charset cs,
org.uberfire.java.nio.file.OpenOption... options) |
public static InputStream newInputStream(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.OpenOption... options) throws IllegalArgumentException, org.uberfire.java.nio.file.NoSuchFileException, UnsupportedOperationException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionNoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static OutputStream newOutputStream(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.OpenOption... options) throws IllegalArgumentException, UnsupportedOperationException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.channels.SeekableByteChannel newByteChannel(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.OpenOption... options)
throws IllegalArgumentException,
UnsupportedOperationException,
org.uberfire.java.nio.file.FileAlreadyExistsException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.channels.SeekableByteChannel newByteChannel(org.uberfire.java.nio.file.Path path,
Set<? extends org.uberfire.java.nio.file.OpenOption> options,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)
throws IllegalArgumentException,
UnsupportedOperationException,
org.uberfire.java.nio.file.FileAlreadyExistsException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.DirectoryStream<org.uberfire.java.nio.file.Path> newDirectoryStream(org.uberfire.java.nio.file.Path dir)
throws IllegalArgumentException,
org.uberfire.java.nio.file.NotDirectoryException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionNotDirectoryExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.DirectoryStream<org.uberfire.java.nio.file.Path> newDirectoryStream(org.uberfire.java.nio.file.Path dir,
String glob)
throws IllegalArgumentException,
UnsupportedOperationException,
PatternSyntaxException,
org.uberfire.java.nio.file.NotDirectoryException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionPatternSyntaxExceptionorg.uberfire.java.nio.file.NotDirectoryExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.DirectoryStream<org.uberfire.java.nio.file.Path> newDirectoryStream(org.uberfire.java.nio.file.Path dir,
org.uberfire.java.nio.file.DirectoryStream.Filter<org.uberfire.java.nio.file.Path> filter)
throws IllegalArgumentException,
org.uberfire.java.nio.file.NotDirectoryException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionNotDirectoryExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path createFile(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)
throws IllegalArgumentException,
UnsupportedOperationException,
org.uberfire.java.nio.file.FileAlreadyExistsException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path createDirectory(org.uberfire.java.nio.file.Path dir,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)
throws IllegalArgumentException,
UnsupportedOperationException,
org.uberfire.java.nio.file.FileAlreadyExistsException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path createDirectories(org.uberfire.java.nio.file.Path dir,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)
throws UnsupportedOperationException,
org.uberfire.java.nio.file.FileAlreadyExistsException,
org.uberfire.java.nio.IOException,
SecurityException
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path createSymbolicLink(org.uberfire.java.nio.file.Path link,
org.uberfire.java.nio.file.Path target,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)
throws IllegalArgumentException,
UnsupportedOperationException,
org.uberfire.java.nio.file.FileAlreadyExistsException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path createLink(org.uberfire.java.nio.file.Path link,
org.uberfire.java.nio.file.Path existing)
throws IllegalArgumentException,
UnsupportedOperationException,
org.uberfire.java.nio.file.FileAlreadyExistsException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static void delete(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.DeleteOption... options)
throws IllegalArgumentException,
org.uberfire.java.nio.file.NoSuchFileException,
org.uberfire.java.nio.file.DirectoryNotEmptyException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionNoSuchFileExceptionDirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static boolean deleteIfExists(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.DeleteOption... options)
throws IllegalArgumentException,
org.uberfire.java.nio.file.DirectoryNotEmptyException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionDirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path createTempFile(String prefix, String suffix, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path createTempFile(org.uberfire.java.nio.file.Path dir,
String prefix,
String suffix,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)
throws IllegalArgumentException,
UnsupportedOperationException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path createTempDirectory(String prefix, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path createTempDirectory(org.uberfire.java.nio.file.Path dir,
String prefix,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)
throws IllegalArgumentException,
UnsupportedOperationException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path copy(org.uberfire.java.nio.file.Path source,
org.uberfire.java.nio.file.Path target,
org.uberfire.java.nio.file.CopyOption... options)
throws UnsupportedOperationException,
org.uberfire.java.nio.file.FileAlreadyExistsException,
org.uberfire.java.nio.file.DirectoryNotEmptyException,
org.uberfire.java.nio.IOException,
SecurityException
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path move(org.uberfire.java.nio.file.Path source,
org.uberfire.java.nio.file.Path target,
org.uberfire.java.nio.file.CopyOption... options)
throws UnsupportedOperationException,
org.uberfire.java.nio.file.FileAlreadyExistsException,
org.uberfire.java.nio.file.DirectoryNotEmptyException,
org.uberfire.java.nio.file.AtomicMoveNotSupportedException,
org.uberfire.java.nio.IOException,
SecurityException
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.file.AtomicMoveNotSupportedExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path readSymbolicLink(org.uberfire.java.nio.file.Path link)
throws IllegalArgumentException,
UnsupportedOperationException,
org.uberfire.java.nio.file.NotLinkException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionNotLinkExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.FileStore getFileStore(org.uberfire.java.nio.file.Path path)
throws IllegalArgumentException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static String probeContentType(org.uberfire.java.nio.file.Path path) throws UnsupportedOperationException, org.uberfire.java.nio.IOException, SecurityException
UnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static <V extends org.uberfire.java.nio.file.attribute.FileAttributeView> V getFileAttributeView(org.uberfire.java.nio.file.Path path,
Class<V> type,
org.uberfire.java.nio.file.LinkOption... options)
throws IllegalArgumentException
IllegalArgumentExceptionpublic static <A extends org.uberfire.java.nio.file.attribute.BasicFileAttributes> A readAttributes(org.uberfire.java.nio.file.Path path,
Class<A> type,
org.uberfire.java.nio.file.LinkOption... options)
throws IllegalArgumentException,
org.uberfire.java.nio.file.NoSuchFileException,
UnsupportedOperationException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionpublic static Map<String,Object> readAttributes(org.uberfire.java.nio.file.Path path, String attributes, org.uberfire.java.nio.file.LinkOption... options) throws UnsupportedOperationException, org.uberfire.java.nio.file.NoSuchFileException, IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException
UnsupportedOperationExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionpublic static org.uberfire.java.nio.file.Path setAttribute(org.uberfire.java.nio.file.Path path,
String attribute,
Object value,
org.uberfire.java.nio.file.LinkOption... options)
throws UnsupportedOperationException,
IllegalArgumentException,
ClassCastException,
org.uberfire.java.nio.IOException,
SecurityException
UnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static Object getAttribute(org.uberfire.java.nio.file.Path path, String attribute, org.uberfire.java.nio.file.LinkOption... options) throws UnsupportedOperationException, IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException
UnsupportedOperationExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static Set<org.uberfire.java.nio.file.attribute.PosixFilePermission> getPosixFilePermissions(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.LinkOption... options) throws UnsupportedOperationException, org.uberfire.java.nio.IOException, SecurityException
UnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path setPosixFilePermissions(org.uberfire.java.nio.file.Path path,
Set<org.uberfire.java.nio.file.attribute.PosixFilePermission> perms)
throws UnsupportedOperationException,
ClassCastException,
org.uberfire.java.nio.IOException,
SecurityException
UnsupportedOperationExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.attribute.UserPrincipal getOwner(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.LinkOption... options)
throws UnsupportedOperationException,
org.uberfire.java.nio.IOException,
SecurityException
UnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path setOwner(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.attribute.UserPrincipal owner)
throws UnsupportedOperationException,
org.uberfire.java.nio.IOException,
SecurityException
UnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.attribute.FileTime getLastModifiedTime(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.LinkOption... options)
throws IllegalArgumentException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path setLastModifiedTime(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.attribute.FileTime time)
throws org.uberfire.java.nio.IOException,
SecurityException
org.uberfire.java.nio.IOExceptionSecurityExceptionpublic static long size(org.uberfire.java.nio.file.Path path)
throws IllegalArgumentException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static boolean exists(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.LinkOption... options)
throws IllegalArgumentException,
SecurityException
IllegalArgumentExceptionSecurityExceptionpublic static boolean notExists(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.LinkOption... options)
throws IllegalArgumentException,
SecurityException
IllegalArgumentExceptionSecurityExceptionpublic static boolean isSameFile(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.Path path2)
throws IllegalArgumentException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static boolean isHidden(org.uberfire.java.nio.file.Path path)
throws IllegalArgumentException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static boolean isReadable(org.uberfire.java.nio.file.Path path)
throws IllegalArgumentException,
SecurityException
IllegalArgumentExceptionSecurityExceptionpublic static boolean isWritable(org.uberfire.java.nio.file.Path path)
throws IllegalArgumentException,
SecurityException
IllegalArgumentExceptionSecurityExceptionpublic static boolean isExecutable(org.uberfire.java.nio.file.Path path)
throws IllegalArgumentException,
SecurityException
IllegalArgumentExceptionSecurityExceptionpublic static boolean isSymbolicLink(org.uberfire.java.nio.file.Path path)
throws IllegalArgumentException,
SecurityException
IllegalArgumentExceptionSecurityExceptionpublic static boolean isDirectory(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.LinkOption... options)
throws IllegalArgumentException,
SecurityException
IllegalArgumentExceptionSecurityExceptionpublic static boolean isRegularFile(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.LinkOption... options)
throws IllegalAccessError,
SecurityException
IllegalAccessErrorSecurityExceptionpublic static org.uberfire.java.nio.file.Path walkFileTree(org.uberfire.java.nio.file.Path start,
Set<org.uberfire.java.nio.file.FileVisitOption> options,
int maxDepth,
org.uberfire.java.nio.file.FileVisitor<org.uberfire.java.nio.file.Path> visitor)
throws IllegalArgumentException,
SecurityException,
org.uberfire.java.nio.IOException
IllegalArgumentExceptionSecurityExceptionorg.uberfire.java.nio.IOExceptionpublic static org.uberfire.java.nio.file.Path walkFileTree(org.uberfire.java.nio.file.Path start,
org.uberfire.java.nio.file.FileVisitor<org.uberfire.java.nio.file.Path> visitor)
throws IllegalArgumentException,
org.uberfire.java.nio.IOException,
SecurityException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static BufferedReader newBufferedReader(org.uberfire.java.nio.file.Path path, Charset cs) throws IllegalArgumentException, org.uberfire.java.nio.file.NoSuchFileException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionNoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static BufferedWriter newBufferedWriter(org.uberfire.java.nio.file.Path path, Charset cs, org.uberfire.java.nio.file.OpenOption... options) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException, SecurityException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityExceptionpublic static long copy(InputStream in, org.uberfire.java.nio.file.Path target, org.uberfire.java.nio.file.CopyOption... options) throws org.uberfire.java.nio.IOException, org.uberfire.java.nio.file.FileAlreadyExistsException, org.uberfire.java.nio.file.DirectoryNotEmptyException, UnsupportedOperationException, SecurityException
org.uberfire.java.nio.IOExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionUnsupportedOperationExceptionSecurityExceptionpublic static long copy(org.uberfire.java.nio.file.Path source,
OutputStream out)
throws org.uberfire.java.nio.IOException,
SecurityException
org.uberfire.java.nio.IOExceptionSecurityExceptionpublic static byte[] readAllBytes(org.uberfire.java.nio.file.Path path)
throws org.uberfire.java.nio.IOException,
OutOfMemoryError,
SecurityException
org.uberfire.java.nio.IOExceptionOutOfMemoryErrorSecurityExceptionpublic static List<String> readAllLines(org.uberfire.java.nio.file.Path path, Charset cs) throws IllegalArgumentException, org.uberfire.java.nio.file.NoSuchFileException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionNoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path write(org.uberfire.java.nio.file.Path path,
byte[] bytes,
org.uberfire.java.nio.file.OpenOption... options)
throws org.uberfire.java.nio.IOException,
UnsupportedOperationException,
SecurityException
org.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityExceptionpublic static org.uberfire.java.nio.file.Path write(org.uberfire.java.nio.file.Path path,
Iterable<? extends CharSequence> lines,
Charset cs,
org.uberfire.java.nio.file.OpenOption... options)
throws IllegalArgumentException,
org.uberfire.java.nio.IOException,
UnsupportedOperationException,
SecurityException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityExceptionCopyright © 2012–2016 JBoss by Red Hat. All rights reserved.