public class IOSecurityService extends Object implements org.uberfire.io.IOService
| Constructor and Description |
|---|
IOSecurityService(org.uberfire.io.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.FileSystem> |
getFileSystems() |
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(org.uberfire.io.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... fss) |
void |
startBatch(org.uberfire.java.nio.file.FileSystem fs) |
void |
startBatch(org.uberfire.java.nio.file.FileSystem[] fss,
org.uberfire.java.nio.file.Option... options) |
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(org.uberfire.io.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 org.uberfire.io.IOServicepublic void startBatch(org.uberfire.java.nio.file.FileSystem[] fss,
org.uberfire.java.nio.file.Option... options)
startBatch in interface org.uberfire.io.IOServicepublic void startBatch(org.uberfire.java.nio.file.FileSystem fs,
org.uberfire.java.nio.file.Option... options)
startBatch in interface org.uberfire.io.IOServicepublic void startBatch(org.uberfire.java.nio.file.FileSystem... fss)
startBatch in interface org.uberfire.io.IOServicepublic void endBatch()
endBatch in interface org.uberfire.io.IOServicepublic org.uberfire.java.nio.file.attribute.FileAttribute<?>[] convert(Map<String,?> attrs)
convert in interface org.uberfire.io.IOServicepublic org.uberfire.java.nio.file.Path get(String first, String... more) throws IllegalArgumentException
get in interface org.uberfire.io.IOServiceIllegalArgumentExceptionpublic org.uberfire.java.nio.file.Path get(URI uri) throws IllegalArgumentException, org.uberfire.java.nio.file.FileSystemNotFoundException, SecurityException
get in interface org.uberfire.io.IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.file.FileSystemNotFoundExceptionSecurityExceptionpublic Iterable<org.uberfire.java.nio.file.FileSystem> getFileSystems()
getFileSystems in interface org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.file.FileSystemAlreadyExistsExceptionorg.uberfire.java.nio.file.ProviderNotFoundExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic void onNewFileSystem(org.uberfire.io.IOService.NewFileSystemListener listener)
onNewFileSystem in interface org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionpublic boolean exists(org.uberfire.java.nio.file.Path path)
throws IllegalArgumentException,
SecurityException
exists in interface org.uberfire.io.IOServiceIllegalArgumentExceptionSecurityExceptionpublic boolean notExists(org.uberfire.java.nio.file.Path path)
throws IllegalArgumentException,
SecurityException
notExists in interface org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.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 org.uberfire.io.IOServiceIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionCopyright © 2012–2017 JBoss by Red Hat. All rights reserved.