Package org.uberfire.java.nio.file
Class Files
- java.lang.Object
-
- org.uberfire.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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longcopy(InputStream in, org.uberfire.java.nio.file.Path target, org.uberfire.java.nio.file.CopyOption... options)static longcopy(org.uberfire.java.nio.file.Path source, OutputStream out)static org.uberfire.java.nio.file.Pathcopy(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.PathcreateDirectories(org.uberfire.java.nio.file.Path dir, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)static org.uberfire.java.nio.file.PathcreateDirectory(org.uberfire.java.nio.file.Path dir, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)static org.uberfire.java.nio.file.PathcreateFile(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)static org.uberfire.java.nio.file.PathcreateLink(org.uberfire.java.nio.file.Path link, org.uberfire.java.nio.file.Path existing)static org.uberfire.java.nio.file.PathcreateSymbolicLink(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.PathcreateTempDirectory(String prefix, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)static org.uberfire.java.nio.file.PathcreateTempDirectory(org.uberfire.java.nio.file.Path dir, String prefix, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)static org.uberfire.java.nio.file.PathcreateTempFile(String prefix, String suffix, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)static org.uberfire.java.nio.file.PathcreateTempFile(org.uberfire.java.nio.file.Path dir, String prefix, String suffix, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)static voiddelete(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.DeleteOption... options)static booleandeleteIfExists(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.DeleteOption... options)static booleanexists(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.LinkOption... options)static ObjectgetAttribute(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>
VgetFileAttributeView(org.uberfire.java.nio.file.Path path, Class<V> type, org.uberfire.java.nio.file.LinkOption... options)static org.uberfire.java.nio.file.FileStoregetFileStore(org.uberfire.java.nio.file.Path path)static org.uberfire.java.nio.file.attribute.FileTimegetLastModifiedTime(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.LinkOption... options)static org.uberfire.java.nio.file.attribute.UserPrincipalgetOwner(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 booleanisDirectory(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.LinkOption... options)static booleanisExecutable(org.uberfire.java.nio.file.Path path)static booleanisHidden(org.uberfire.java.nio.file.Path path)static booleanisReadable(org.uberfire.java.nio.file.Path path)static booleanisRegularFile(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.LinkOption... options)static booleanisSameFile(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.Path path2)static booleanisSymbolicLink(org.uberfire.java.nio.file.Path path)static booleanisWritable(org.uberfire.java.nio.file.Path path)static org.uberfire.java.nio.file.Pathmove(org.uberfire.java.nio.file.Path source, org.uberfire.java.nio.file.Path target, org.uberfire.java.nio.file.CopyOption... options)static BufferedReadernewBufferedReader(org.uberfire.java.nio.file.Path path, Charset cs)static BufferedWriternewBufferedWriter(org.uberfire.java.nio.file.Path path, Charset cs, org.uberfire.java.nio.file.OpenOption... options)static org.uberfire.java.nio.channels.SeekableByteChannelnewByteChannel(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.channels.SeekableByteChannelnewByteChannel(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.OpenOption... options)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, String glob)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 InputStreamnewInputStream(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.OpenOption... options)static OutputStreamnewOutputStream(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.OpenOption... options)static booleannotExists(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.LinkOption... options)static StringprobeContentType(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>
AreadAttributes(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.PathreadSymbolicLink(org.uberfire.java.nio.file.Path link)static org.uberfire.java.nio.file.PathsetAttribute(org.uberfire.java.nio.file.Path path, String attribute, Object value, org.uberfire.java.nio.file.LinkOption... options)static org.uberfire.java.nio.file.PathsetLastModifiedTime(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.attribute.FileTime time)static org.uberfire.java.nio.file.PathsetOwner(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.attribute.UserPrincipal owner)static org.uberfire.java.nio.file.PathsetPosixFilePermissions(org.uberfire.java.nio.file.Path path, Set<org.uberfire.java.nio.file.attribute.PosixFilePermission> perms)static longsize(org.uberfire.java.nio.file.Path path)static org.uberfire.java.nio.file.PathwalkFileTree(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.PathwalkFileTree(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.Pathwrite(org.uberfire.java.nio.file.Path path, byte[] bytes, org.uberfire.java.nio.file.OpenOption... options)static org.uberfire.java.nio.file.Pathwrite(org.uberfire.java.nio.file.Path path, Iterable<? extends CharSequence> lines, Charset cs, org.uberfire.java.nio.file.OpenOption... options)
-
-
-
Method Detail
-
newInputStream
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
- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
newOutputStream
public 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
- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
newByteChannel
public 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- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
newByteChannel
public 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- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
newDirectoryStream
public 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- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NotDirectoryExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
newDirectoryStream
public 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- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionPatternSyntaxExceptionorg.uberfire.java.nio.file.NotDirectoryExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
newDirectoryStream
public 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- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NotDirectoryExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
createFile
public 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- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
createDirectory
public 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- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
createDirectories
public 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- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createSymbolicLink
public 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- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
createLink
public 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- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
delete
public 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- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
deleteIfExists
public 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- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
createTempFile
public 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
- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createTempFile
public 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- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createTempDirectory
public 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
- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createTempDirectory
public 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- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
copy
public 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- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
move
public 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- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.file.AtomicMoveNotSupportedExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
readSymbolicLink
public 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- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.NotLinkExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
getFileStore
public static org.uberfire.java.nio.file.FileStore getFileStore(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
probeContentType
public static String probeContentType(org.uberfire.java.nio.file.Path path) throws UnsupportedOperationException, org.uberfire.java.nio.IOException, SecurityException
- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
getFileAttributeView
public 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- Throws:
IllegalArgumentException- See Also:
- Original JavaDoc
-
readAttributes
public 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- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionorg.uberfire.java.nio.file.NoSuchFileException- See Also:
- Original JavaDoc
-
readAttributes
public 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
- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionorg.uberfire.java.nio.file.NoSuchFileException- See Also:
- Original JavaDoc
-
setAttribute
public 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- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
getAttribute
public 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
- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
getPosixFilePermissions
public 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
- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
setPosixFilePermissions
public 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- Throws:
UnsupportedOperationExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
getOwner
public 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- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
setOwner
public 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- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
getLastModifiedTime
public 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- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
setLastModifiedTime
public 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- Throws:
org.uberfire.java.nio.IOExceptionSecurityException
-
size
public static long size(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
exists
public static boolean exists(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.LinkOption... options) throws IllegalArgumentException, SecurityException- Throws:
IllegalArgumentExceptionSecurityException- See Also:
- Original JavaDoc
-
notExists
public static boolean notExists(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.LinkOption... options) throws IllegalArgumentException, SecurityException- Throws:
IllegalArgumentExceptionSecurityException- See Also:
- Original JavaDoc
-
isSameFile
public 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- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
isHidden
public static boolean isHidden(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
isReadable
public static boolean isReadable(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, SecurityException- Throws:
IllegalArgumentExceptionSecurityException- See Also:
- Original JavaDoc
-
isWritable
public static boolean isWritable(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, SecurityException- Throws:
IllegalArgumentExceptionSecurityException- See Also:
- Original JavaDoc
-
isExecutable
public static boolean isExecutable(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, SecurityException- Throws:
IllegalArgumentExceptionSecurityException- See Also:
- Original JavaDoc
-
isSymbolicLink
public static boolean isSymbolicLink(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, SecurityException- Throws:
IllegalArgumentExceptionSecurityException- See Also:
- Original JavaDoc
-
isDirectory
public static boolean isDirectory(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.LinkOption... options) throws IllegalArgumentException, SecurityException- Throws:
IllegalArgumentExceptionSecurityException- See Also:
- Original JavaDoc
-
isRegularFile
public static boolean isRegularFile(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.LinkOption... options) throws IllegalAccessError, SecurityException- Throws:
IllegalAccessErrorSecurityException- See Also:
- Original JavaDoc
-
walkFileTree
public 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- Throws:
IllegalArgumentExceptionSecurityExceptionorg.uberfire.java.nio.IOException
-
walkFileTree
public 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- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
newBufferedReader
public 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
- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
newBufferedWriter
public 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
- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityException- See Also:
- Original JavaDoc
-
copy
public 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
- Throws:
org.uberfire.java.nio.IOExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionUnsupportedOperationExceptionSecurityException
-
copy
public static long copy(org.uberfire.java.nio.file.Path source, OutputStream out) throws org.uberfire.java.nio.IOException, SecurityException- Throws:
org.uberfire.java.nio.IOExceptionSecurityException
-
readAllBytes
public static byte[] readAllBytes(org.uberfire.java.nio.file.Path path) throws org.uberfire.java.nio.IOException, OutOfMemoryError, SecurityException- Throws:
org.uberfire.java.nio.IOExceptionOutOfMemoryErrorSecurityException
-
readAllLines
public 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
- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityException- See Also:
- Original JavaDoc
-
write
public 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- Throws:
org.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityException
-
write
public 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- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityException- See Also:
- Original JavaDoc
-
-