Package org.uberfire.io
Interface IOService
-
- All Superinterfaces:
org.uberfire.commons.lifecycle.Disposable,org.uberfire.commons.lifecycle.PriorityDisposable
- All Known Subinterfaces:
IOServiceIdentifiable,IOServiceLockable
- All Known Implementing Classes:
AbstractIOService,IOServiceDotFileImpl,IOServiceNio2WrapperImpl
public interface IOService extends org.uberfire.commons.lifecycle.PriorityDisposable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIOService.NewFileSystemListener
-
Field Summary
Fields Modifier and Type Field Description static Set<org.uberfire.java.nio.file.OpenOption>EMPTY_OPTIONS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.uberfire.java.nio.file.attribute.FileAttribute<?>[]convert(Map<String,?> attrs)longcopy(InputStream in, org.uberfire.java.nio.file.Path target, org.uberfire.java.nio.file.CopyOption... options)longcopy(org.uberfire.java.nio.file.Path source, OutputStream out)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)org.uberfire.java.nio.file.PathcreateDirectories(org.uberfire.java.nio.file.Path dir, Map<String,?> attrs)org.uberfire.java.nio.file.PathcreateDirectories(org.uberfire.java.nio.file.Path dir, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)org.uberfire.java.nio.file.PathcreateDirectory(org.uberfire.java.nio.file.Path dir, Map<String,?> attrs)org.uberfire.java.nio.file.PathcreateDirectory(org.uberfire.java.nio.file.Path dir, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)org.uberfire.java.nio.file.PathcreateFile(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)org.uberfire.java.nio.file.PathcreateTempDirectory(String prefix, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)org.uberfire.java.nio.file.PathcreateTempDirectory(org.uberfire.java.nio.file.Path dir, String prefix, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)org.uberfire.java.nio.file.PathcreateTempFile(String prefix, String suffix, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)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)voiddelete(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.DeleteOption... options)booleandeleteIfExists(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.DeleteOption... options)voidendBatch()booleanexists(org.uberfire.java.nio.file.Path path)org.uberfire.java.nio.file.Pathget(String first, String... more)org.uberfire.java.nio.file.Pathget(URI uri)ObjectgetAttribute(org.uberfire.java.nio.file.Path path, String attribute)<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.FileSystemgetFileSystem(URI uri)Iterable<org.uberfire.java.nio.file.FileSystemMetadata>getFileSystemMetadata()org.uberfire.java.nio.file.attribute.FileTimegetLastModifiedTime(org.uberfire.java.nio.file.Path path)booleanisSameFile(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.Path path2)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)BufferedReadernewBufferedReader(org.uberfire.java.nio.file.Path path, Charset cs)BufferedWriternewBufferedWriter(org.uberfire.java.nio.file.Path path, Charset cs, org.uberfire.java.nio.file.OpenOption... options)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)org.uberfire.java.nio.channels.SeekableByteChannelnewByteChannel(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.OpenOption... options)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<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)org.uberfire.java.nio.file.FileSystemnewFileSystem(URI uri, Map<String,?> env)InputStreamnewInputStream(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.OpenOption... options)OutputStreamnewOutputStream(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.OpenOption... options)booleannotExists(org.uberfire.java.nio.file.Path path)voidonNewFileSystem(IOService.NewFileSystemListener listener)byte[]readAllBytes(org.uberfire.java.nio.file.Path path)List<String>readAllLines(org.uberfire.java.nio.file.Path path)List<String>readAllLines(org.uberfire.java.nio.file.Path path, Charset cs)StringreadAllString(org.uberfire.java.nio.file.Path path)StringreadAllString(org.uberfire.java.nio.file.Path path, Charset cs)Map<String,Object>readAttributes(org.uberfire.java.nio.file.Path path)Map<String,Object>readAttributes(org.uberfire.java.nio.file.Path path, String attributes)org.uberfire.java.nio.file.PathsetAttribute(org.uberfire.java.nio.file.Path path, String attribute, Object value)org.uberfire.java.nio.file.PathsetAttributes(org.uberfire.java.nio.file.Path path, Map<String,Object> attrs)org.uberfire.java.nio.file.PathsetAttributes(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)longsize(org.uberfire.java.nio.file.Path path)voidstartBatch(org.uberfire.java.nio.file.FileSystem fs)voidstartBatch(org.uberfire.java.nio.file.FileSystem fs, org.uberfire.java.nio.file.Option... options)org.uberfire.java.nio.file.Pathwrite(org.uberfire.java.nio.file.Path path, byte[] bytes, Map<String,?> attrs, org.uberfire.java.nio.file.OpenOption... options)org.uberfire.java.nio.file.Pathwrite(org.uberfire.java.nio.file.Path path, byte[] bytes, Set<? extends org.uberfire.java.nio.file.OpenOption> options, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)org.uberfire.java.nio.file.Pathwrite(org.uberfire.java.nio.file.Path path, byte[] bytes, org.uberfire.java.nio.file.OpenOption... options)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)org.uberfire.java.nio.file.Pathwrite(org.uberfire.java.nio.file.Path path, String content, Charset cs, Map<String,?> attrs, org.uberfire.java.nio.file.OpenOption... options)org.uberfire.java.nio.file.Pathwrite(org.uberfire.java.nio.file.Path path, String content, Charset cs, Set<? extends org.uberfire.java.nio.file.OpenOption> options, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)org.uberfire.java.nio.file.Pathwrite(org.uberfire.java.nio.file.Path path, String content, Charset cs, org.uberfire.java.nio.file.OpenOption... options)org.uberfire.java.nio.file.Pathwrite(org.uberfire.java.nio.file.Path path, String content, Map<String,?> attrs, org.uberfire.java.nio.file.OpenOption... options)org.uberfire.java.nio.file.Pathwrite(org.uberfire.java.nio.file.Path path, String content, Set<? extends org.uberfire.java.nio.file.OpenOption> options, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)org.uberfire.java.nio.file.Pathwrite(org.uberfire.java.nio.file.Path path, String content, org.uberfire.java.nio.file.OpenOption... options)
-
-
-
Field Detail
-
EMPTY_OPTIONS
static final Set<org.uberfire.java.nio.file.OpenOption> EMPTY_OPTIONS
-
-
Method Detail
-
startBatch
void startBatch(org.uberfire.java.nio.file.FileSystem fs)
-
startBatch
void startBatch(org.uberfire.java.nio.file.FileSystem fs, org.uberfire.java.nio.file.Option... options)
-
endBatch
void endBatch()
-
get
org.uberfire.java.nio.file.Path get(String first, String... more) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
get
org.uberfire.java.nio.file.Path get(URI uri) throws IllegalArgumentException, org.uberfire.java.nio.file.FileSystemNotFoundException, SecurityException
- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.FileSystemNotFoundExceptionSecurityException
-
getFileSystemMetadata
Iterable<org.uberfire.java.nio.file.FileSystemMetadata> getFileSystemMetadata()
-
getFileSystem
org.uberfire.java.nio.file.FileSystem getFileSystem(URI uri) throws IllegalArgumentException, org.uberfire.java.nio.file.FileSystemNotFoundException, org.uberfire.java.nio.file.ProviderNotFoundException, SecurityException
- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.FileSystemNotFoundExceptionorg.uberfire.java.nio.file.ProviderNotFoundExceptionSecurityException
-
newFileSystem
org.uberfire.java.nio.file.FileSystem newFileSystem(URI uri, Map<String,?> env) throws IllegalArgumentException, org.uberfire.java.nio.file.FileSystemAlreadyExistsException, org.uberfire.java.nio.file.ProviderNotFoundException, org.uberfire.java.nio.IOException, SecurityException
- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.FileSystemAlreadyExistsExceptionorg.uberfire.java.nio.file.ProviderNotFoundExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
onNewFileSystem
void onNewFileSystem(IOService.NewFileSystemListener listener)
-
newInputStream
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:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
newOutputStream
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
-
newByteChannel
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
-
newByteChannel
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
-
newDirectoryStream
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
-
newDirectoryStream
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
-
createFile
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
-
createDirectory
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
-
createDirectories
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
-
createDirectory
org.uberfire.java.nio.file.Path createDirectory(org.uberfire.java.nio.file.Path dir, Map<String,?> 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
-
createDirectories
org.uberfire.java.nio.file.Path createDirectories(org.uberfire.java.nio.file.Path dir, Map<String,?> 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
-
delete
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
-
deleteIfExists
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
-
createTempFile
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
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
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
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
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
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
-
getFileAttributeView
<V extends org.uberfire.java.nio.file.attribute.FileAttributeView> V getFileAttributeView(org.uberfire.java.nio.file.Path path, Class<V> type) throws IllegalArgumentException- Throws:
IllegalArgumentException
-
readAttributes
Map<String,Object> readAttributes(org.uberfire.java.nio.file.Path path) throws UnsupportedOperationException, org.uberfire.java.nio.file.NoSuchFileException, IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException
- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
readAttributes
Map<String,Object> readAttributes(org.uberfire.java.nio.file.Path path, String attributes) throws UnsupportedOperationException, org.uberfire.java.nio.file.NoSuchFileException, IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException
- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
setAttributes
org.uberfire.java.nio.file.Path setAttributes(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, org.uberfire.java.nio.IOException, SecurityException- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
setAttributes
org.uberfire.java.nio.file.Path setAttributes(org.uberfire.java.nio.file.Path path, Map<String,Object> attrs) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, org.uberfire.java.nio.IOException, SecurityException- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
setAttribute
org.uberfire.java.nio.file.Path setAttribute(org.uberfire.java.nio.file.Path path, String attribute, Object value) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, org.uberfire.java.nio.IOException, SecurityException- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
getAttribute
Object getAttribute(org.uberfire.java.nio.file.Path path, String attribute) throws UnsupportedOperationException, IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException
- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
getLastModifiedTime
org.uberfire.java.nio.file.attribute.FileTime getLastModifiedTime(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
size
long size(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException
- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
exists
boolean exists(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, SecurityException
-
notExists
boolean notExists(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, SecurityException
-
isSameFile
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
-
newBufferedReader
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
-
newBufferedWriter
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
-
copy
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
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
byte[] readAllBytes(org.uberfire.java.nio.file.Path path) throws org.uberfire.java.nio.IOException, OutOfMemoryError, SecurityException- Throws:
org.uberfire.java.nio.IOExceptionOutOfMemoryErrorSecurityException
-
readAllLines
List<String> readAllLines(org.uberfire.java.nio.file.Path path) 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
-
readAllLines
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
-
readAllString
String readAllString(org.uberfire.java.nio.file.Path path, Charset cs) throws IllegalArgumentException, org.uberfire.java.nio.file.NoSuchFileException, org.uberfire.java.nio.IOException
- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOException
-
readAllString
String readAllString(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, org.uberfire.java.nio.file.NoSuchFileException, org.uberfire.java.nio.IOException
- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOException
-
write
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
org.uberfire.java.nio.file.Path write(org.uberfire.java.nio.file.Path path, byte[] bytes, Map<String,?> attrs, org.uberfire.java.nio.file.OpenOption... options) throws org.uberfire.java.nio.IOException, UnsupportedOperationException, SecurityException- Throws:
org.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityException
-
write
org.uberfire.java.nio.file.Path write(org.uberfire.java.nio.file.Path path, byte[] bytes, Set<? extends org.uberfire.java.nio.file.OpenOption> options, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
write
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
-
write
org.uberfire.java.nio.file.Path write(org.uberfire.java.nio.file.Path path, String content, org.uberfire.java.nio.file.OpenOption... options) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
write
org.uberfire.java.nio.file.Path write(org.uberfire.java.nio.file.Path path, String content, Charset cs, org.uberfire.java.nio.file.OpenOption... options) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
write
org.uberfire.java.nio.file.Path write(org.uberfire.java.nio.file.Path path, String content, Set<? extends org.uberfire.java.nio.file.OpenOption> options, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
write
org.uberfire.java.nio.file.Path write(org.uberfire.java.nio.file.Path path, String content, Charset cs, Set<? extends org.uberfire.java.nio.file.OpenOption> options, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
write
org.uberfire.java.nio.file.Path write(org.uberfire.java.nio.file.Path path, String content, Map<String,?> attrs, org.uberfire.java.nio.file.OpenOption... options) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
write
org.uberfire.java.nio.file.Path write(org.uberfire.java.nio.file.Path path, String content, Charset cs, Map<String,?> attrs, org.uberfire.java.nio.file.OpenOption... options) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
-