IOService.NewFileSystemListenerEMPTY_OPTIONS| Constructor and Description |
|---|
IOSecurityService(IOService service,
org.jboss.errai.security.shared.service.AuthenticationService authenticationService,
AuthorizationManager authManager) |
| Modifier and Type | Method and Description |
|---|---|
org.uberfire.java.nio.file.attribute.FileAttribute<?>[] |
convert(Map<String,?> attrs) |
long |
copy(InputStream in,
org.uberfire.java.nio.file.Path target,
org.uberfire.java.nio.file.CopyOption... options) |
long |
copy(org.uberfire.java.nio.file.Path source,
OutputStream out) |
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) |
org.uberfire.java.nio.file.Path |
createDirectories(org.uberfire.java.nio.file.Path dir,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
org.uberfire.java.nio.file.Path |
createDirectories(org.uberfire.java.nio.file.Path dir,
Map<String,?> attrs) |
org.uberfire.java.nio.file.Path |
createDirectory(org.uberfire.java.nio.file.Path dir,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
org.uberfire.java.nio.file.Path |
createDirectory(org.uberfire.java.nio.file.Path dir,
Map<String,?> attrs) |
org.uberfire.java.nio.file.Path |
createFile(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
org.uberfire.java.nio.file.Path |
createTempDirectory(org.uberfire.java.nio.file.Path dir,
String prefix,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
org.uberfire.java.nio.file.Path |
createTempDirectory(String prefix,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
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) |
org.uberfire.java.nio.file.Path |
createTempFile(String prefix,
String suffix,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
void |
delete(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.DeleteOption... options) |
boolean |
deleteIfExists(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.DeleteOption... options) |
void |
dispose() |
void |
endBatch() |
boolean |
exists(org.uberfire.java.nio.file.Path path) |
org.uberfire.java.nio.file.Path |
get(String first,
String... more) |
org.uberfire.java.nio.file.Path |
get(URI uri) |
Object |
getAttribute(org.uberfire.java.nio.file.Path path,
String attribute) |
<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.FileSystem |
getFileSystem(URI uri) |
Iterable<org.uberfire.java.nio.file.FileSystemMetadata> |
getFileSystemMetadata() |
org.uberfire.java.nio.file.attribute.FileTime |
getLastModifiedTime(org.uberfire.java.nio.file.Path path) |
boolean |
isSameFile(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.Path path2) |
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) |
BufferedReader |
newBufferedReader(org.uberfire.java.nio.file.Path path,
Charset cs) |
BufferedWriter |
newBufferedWriter(org.uberfire.java.nio.file.Path path,
Charset cs,
org.uberfire.java.nio.file.OpenOption... options) |
org.uberfire.java.nio.channels.SeekableByteChannel |
newByteChannel(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.OpenOption... options) |
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) |
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.FileSystem |
newFileSystem(URI uri,
Map<String,?> env) |
InputStream |
newInputStream(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.OpenOption... options) |
OutputStream |
newOutputStream(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.OpenOption... options) |
boolean |
notExists(org.uberfire.java.nio.file.Path path) |
void |
onNewFileSystem(IOService.NewFileSystemListener listener) |
int |
priority() |
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) |
String |
readAllString(org.uberfire.java.nio.file.Path path) |
String |
readAllString(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.Path |
setAttribute(org.uberfire.java.nio.file.Path path,
String attribute,
Object value) |
org.uberfire.java.nio.file.Path |
setAttributes(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) |
org.uberfire.java.nio.file.Path |
setAttributes(org.uberfire.java.nio.file.Path path,
Map<String,Object> attrs) |
long |
size(org.uberfire.java.nio.file.Path path) |
void |
startBatch(org.uberfire.java.nio.file.FileSystem fs) |
void |
startBatch(org.uberfire.java.nio.file.FileSystem fs,
org.uberfire.java.nio.file.Option... options) |
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) |
org.uberfire.java.nio.file.Path |
write(org.uberfire.java.nio.file.Path path,
byte[] bytes,
org.uberfire.java.nio.file.OpenOption... options) |
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) |
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) |
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) |
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) |
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) |
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) |
org.uberfire.java.nio.file.Path |
write(org.uberfire.java.nio.file.Path path,
String content,
org.uberfire.java.nio.file.OpenOption... options) |
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) |
public IOSecurityService(IOService service, org.jboss.errai.security.shared.service.AuthenticationService authenticationService, AuthorizationManager authManager)
public void dispose()
dispose in interface org.uberfire.commons.lifecycle.Disposablepublic int priority()
priority in interface org.uberfire.commons.lifecycle.PriorityDisposablepublic void startBatch(org.uberfire.java.nio.file.FileSystem fs)
startBatch in interface IOServicepublic void startBatch(org.uberfire.java.nio.file.FileSystem fs,
org.uberfire.java.nio.file.Option... options)
startBatch in interface IOServicepublic org.uberfire.java.nio.file.Path get(String first, String... more) throws IllegalArgumentException
get in interface IOServiceIllegalArgumentExceptionpublic org.uberfire.java.nio.file.Path get(URI uri) throws IllegalArgumentException, org.uberfire.java.nio.file.FileSystemNotFoundException, SecurityException
get in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.file.FileSystemNotFoundExceptionSecurityExceptionpublic Iterable<org.uberfire.java.nio.file.FileSystemMetadata> getFileSystemMetadata()
getFileSystemMetadata in interface IOServicepublic org.uberfire.java.nio.file.FileSystem getFileSystem(URI uri) throws IllegalArgumentException, org.uberfire.java.nio.file.FileSystemNotFoundException, org.uberfire.java.nio.file.ProviderNotFoundException, SecurityException
getFileSystem in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.file.FileSystemNotFoundExceptionorg.uberfire.java.nio.file.ProviderNotFoundExceptionSecurityExceptionpublic 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
newFileSystem in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.file.FileSystemAlreadyExistsExceptionorg.uberfire.java.nio.file.ProviderNotFoundExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic void onNewFileSystem(IOService.NewFileSystemListener listener)
onNewFileSystem in interface IOServicepublic 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
newInputStream in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
newOutputStream in interface IOServiceIllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
newByteChannel in interface IOServiceIllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
newByteChannel in interface IOServiceIllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
newDirectoryStream in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.file.NotDirectoryExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
newDirectoryStream in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.file.NotDirectoryExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
createFile in interface IOServiceIllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
createDirectory in interface IOServiceIllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
createDirectories in interface IOServiceUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
createDirectory in interface IOServiceIllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
createDirectories in interface IOServiceUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
delete in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
deleteIfExists in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
createTempFile in interface IOServiceIllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
createTempFile in interface IOServiceIllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
createTempDirectory in interface IOServiceIllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
createTempDirectory in interface IOServiceIllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
copy in interface IOServiceUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
move in interface IOServiceUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.file.AtomicMoveNotSupportedExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic <V extends org.uberfire.java.nio.file.attribute.FileAttributeView> V getFileAttributeView(org.uberfire.java.nio.file.Path path,
Class<V> type)
throws IllegalArgumentException
getFileAttributeView in interface IOServiceIllegalArgumentExceptionpublic 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
readAttributes in interface IOServiceUnsupportedOperationExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
readAttributes in interface IOServiceUnsupportedOperationExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
setAttributes in interface IOServiceUnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
setAttributes in interface IOServiceUnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
setAttribute in interface IOServiceUnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic Object getAttribute(org.uberfire.java.nio.file.Path path, String attribute) throws UnsupportedOperationException, IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException
getAttribute in interface IOServiceUnsupportedOperationExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic org.uberfire.java.nio.file.attribute.FileTime getLastModifiedTime(org.uberfire.java.nio.file.Path path)
throws IllegalArgumentException,
org.uberfire.java.nio.IOException,
SecurityException
getLastModifiedTime in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic long size(org.uberfire.java.nio.file.Path path)
throws IllegalArgumentException,
org.uberfire.java.nio.IOException,
SecurityException
size in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic boolean exists(org.uberfire.java.nio.file.Path path)
throws IllegalArgumentException,
SecurityException
exists in interface IOServiceIllegalArgumentExceptionSecurityExceptionpublic boolean notExists(org.uberfire.java.nio.file.Path path)
throws IllegalArgumentException,
SecurityException
notExists in interface IOServiceIllegalArgumentExceptionSecurityExceptionpublic boolean isSameFile(org.uberfire.java.nio.file.Path path,
org.uberfire.java.nio.file.Path path2)
throws IllegalArgumentException,
org.uberfire.java.nio.IOException,
SecurityException
isSameFile in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
newBufferedReader in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
newBufferedWriter in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityExceptionpublic 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
copy in interface IOServiceorg.uberfire.java.nio.IOExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionUnsupportedOperationExceptionSecurityExceptionpublic long copy(org.uberfire.java.nio.file.Path source,
OutputStream out)
throws org.uberfire.java.nio.IOException,
SecurityException
copy in interface IOServiceorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic byte[] readAllBytes(org.uberfire.java.nio.file.Path path)
throws org.uberfire.java.nio.IOException,
OutOfMemoryError,
SecurityException
readAllBytes in interface IOServiceorg.uberfire.java.nio.IOExceptionOutOfMemoryErrorSecurityExceptionpublic List<String> readAllLines(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, org.uberfire.java.nio.file.NoSuchFileException, org.uberfire.java.nio.IOException, SecurityException
readAllLines in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic 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
readAllLines in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic String readAllString(org.uberfire.java.nio.file.Path path, Charset cs) throws IllegalArgumentException, org.uberfire.java.nio.file.NoSuchFileException, org.uberfire.java.nio.IOException
readAllString in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOExceptionpublic String readAllString(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, org.uberfire.java.nio.file.NoSuchFileException, org.uberfire.java.nio.IOException
readAllString in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOExceptionpublic 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
write in interface IOServiceorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityExceptionpublic 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
write in interface IOServiceorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityExceptionpublic 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
write in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionpublic 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
write in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityExceptionpublic 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
write in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionpublic 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
write in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionpublic 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
write in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionpublic 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
write in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionpublic 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
write in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionpublic 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
write in interface IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionCopyright © 2012–2018 JBoss by Red Hat. All rights reserved.