Class IOSecurityService
- java.lang.Object
-
- org.uberfire.ext.security.server.io.IOSecurityService
-
- All Implemented Interfaces:
org.uberfire.commons.lifecycle.Disposable,org.uberfire.commons.lifecycle.PriorityDisposable,org.uberfire.io.IOService
public class IOSecurityService extends Object implements org.uberfire.io.IOService
-
-
Constructor Summary
Constructors Constructor Description IOSecurityService(org.uberfire.io.IOService service, org.jboss.errai.security.shared.service.AuthenticationService authenticationService, org.uberfire.security.authz.AuthorizationManager authManager)
-
Method Summary
All Methods Instance Methods Concrete 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)voiddispose()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(org.uberfire.io.IOService.NewFileSystemListener listener)intpriority()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)
-
-
-
Method Detail
-
dispose
public void dispose()
- Specified by:
disposein interfaceorg.uberfire.commons.lifecycle.Disposable
-
priority
public int priority()
- Specified by:
priorityin interfaceorg.uberfire.commons.lifecycle.PriorityDisposable
-
startBatch
public void startBatch(org.uberfire.java.nio.file.FileSystem fs)
- Specified by:
startBatchin interfaceorg.uberfire.io.IOService
-
startBatch
public void startBatch(org.uberfire.java.nio.file.FileSystem fs, org.uberfire.java.nio.file.Option... options)- Specified by:
startBatchin interfaceorg.uberfire.io.IOService
-
endBatch
public void endBatch()
- Specified by:
endBatchin interfaceorg.uberfire.io.IOService
-
convert
public org.uberfire.java.nio.file.attribute.FileAttribute<?>[] convert(Map<String,?> attrs)
- Specified by:
convertin interfaceorg.uberfire.io.IOService
-
get
public org.uberfire.java.nio.file.Path get(String first, String... more) throws IllegalArgumentException
- Specified by:
getin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentException
-
get
public org.uberfire.java.nio.file.Path get(URI uri) throws IllegalArgumentException, org.uberfire.java.nio.file.FileSystemNotFoundException, SecurityException
- Specified by:
getin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.FileSystemNotFoundExceptionSecurityException
-
getFileSystemMetadata
public Iterable<org.uberfire.java.nio.file.FileSystemMetadata> getFileSystemMetadata()
- Specified by:
getFileSystemMetadatain interfaceorg.uberfire.io.IOService
-
getFileSystem
public org.uberfire.java.nio.file.FileSystem getFileSystem(URI uri) throws IllegalArgumentException, org.uberfire.java.nio.file.FileSystemNotFoundException, org.uberfire.java.nio.file.ProviderNotFoundException, SecurityException
- Specified by:
getFileSystemin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.FileSystemNotFoundExceptionorg.uberfire.java.nio.file.ProviderNotFoundExceptionSecurityException
-
newFileSystem
public 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
- Specified by:
newFileSystemin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.FileSystemAlreadyExistsExceptionorg.uberfire.java.nio.file.ProviderNotFoundExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
onNewFileSystem
public void onNewFileSystem(org.uberfire.io.IOService.NewFileSystemListener listener)
- Specified by:
onNewFileSystemin interfaceorg.uberfire.io.IOService
-
newInputStream
public 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
- Specified by:
newInputStreamin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
newOutputStream
public 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
- Specified by:
newOutputStreamin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
newByteChannel
public 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- Specified by:
newByteChannelin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
newByteChannel
public 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- Specified by:
newByteChannelin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
newDirectoryStream
public 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- Specified by:
newDirectoryStreamin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NotDirectoryExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
newDirectoryStream
public 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- Specified by:
newDirectoryStreamin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NotDirectoryExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createFile
public 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- Specified by:
createFilein interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createDirectory
public 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- Specified by:
createDirectoryin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createDirectories
public 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- Specified by:
createDirectoriesin interfaceorg.uberfire.io.IOService- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createDirectory
public 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- Specified by:
createDirectoryin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createDirectories
public 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- Specified by:
createDirectoriesin interfaceorg.uberfire.io.IOService- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
delete
public 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- Specified by:
deletein interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
deleteIfExists
public 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- Specified by:
deleteIfExistsin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createTempFile
public 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
- Specified by:
createTempFilein interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createTempFile
public 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- Specified by:
createTempFilein interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createTempDirectory
public 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
- Specified by:
createTempDirectoryin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
createTempDirectory
public 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- Specified by:
createTempDirectoryin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
copy
public 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- Specified by:
copyin interfaceorg.uberfire.io.IOService- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
move
public 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- Specified by:
movein interfaceorg.uberfire.io.IOService- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.file.AtomicMoveNotSupportedExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
getFileAttributeView
public <V extends org.uberfire.java.nio.file.attribute.FileAttributeView> V getFileAttributeView(org.uberfire.java.nio.file.Path path, Class<V> type) throws IllegalArgumentException- Specified by:
getFileAttributeViewin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentException
-
readAttributes
public 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
- Specified by:
readAttributesin interfaceorg.uberfire.io.IOService- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
readAttributes
public 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
- Specified by:
readAttributesin interfaceorg.uberfire.io.IOService- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
setAttributes
public 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- Specified by:
setAttributesin interfaceorg.uberfire.io.IOService- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
setAttributes
public 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- Specified by:
setAttributesin interfaceorg.uberfire.io.IOService- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
setAttribute
public 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- Specified by:
setAttributein interfaceorg.uberfire.io.IOService- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
getAttribute
public Object getAttribute(org.uberfire.java.nio.file.Path path, String attribute) throws UnsupportedOperationException, IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException
- Specified by:
getAttributein interfaceorg.uberfire.io.IOService- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
getLastModifiedTime
public org.uberfire.java.nio.file.attribute.FileTime getLastModifiedTime(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException- Specified by:
getLastModifiedTimein interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
size
public long size(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException- Specified by:
sizein interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
exists
public boolean exists(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, SecurityException- Specified by:
existsin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionSecurityException
-
notExists
public boolean notExists(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, SecurityException- Specified by:
notExistsin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionSecurityException
-
isSameFile
public boolean isSameFile(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.Path path2) throws IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException- Specified by:
isSameFilein interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
newBufferedReader
public 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
- Specified by:
newBufferedReaderin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
newBufferedWriter
public 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
- Specified by:
newBufferedWriterin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityException
-
copy
public 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
- Specified by:
copyin interfaceorg.uberfire.io.IOService- Throws:
org.uberfire.java.nio.IOExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionUnsupportedOperationExceptionSecurityException
-
copy
public long copy(org.uberfire.java.nio.file.Path source, OutputStream out) throws org.uberfire.java.nio.IOException, SecurityException- Specified by:
copyin interfaceorg.uberfire.io.IOService- Throws:
org.uberfire.java.nio.IOExceptionSecurityException
-
readAllBytes
public byte[] readAllBytes(org.uberfire.java.nio.file.Path path) throws org.uberfire.java.nio.IOException, OutOfMemoryError, SecurityException- Specified by:
readAllBytesin interfaceorg.uberfire.io.IOService- Throws:
org.uberfire.java.nio.IOExceptionOutOfMemoryErrorSecurityException
-
readAllLines
public List<String> readAllLines(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, org.uberfire.java.nio.file.NoSuchFileException, org.uberfire.java.nio.IOException, SecurityException
- Specified by:
readAllLinesin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
readAllLines
public 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
- Specified by:
readAllLinesin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
readAllString
public String readAllString(org.uberfire.java.nio.file.Path path, Charset cs) throws IllegalArgumentException, org.uberfire.java.nio.file.NoSuchFileException, org.uberfire.java.nio.IOException
- Specified by:
readAllStringin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOException
-
readAllString
public String readAllString(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, org.uberfire.java.nio.file.NoSuchFileException, org.uberfire.java.nio.IOException
- Specified by:
readAllStringin interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOException
-
write
public 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- Specified by:
writein interfaceorg.uberfire.io.IOService- Throws:
org.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityException
-
write
public 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- Specified by:
writein interfaceorg.uberfire.io.IOService- Throws:
org.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityException
-
write
public 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- Specified by:
writein interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
write
public 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- Specified by:
writein interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityException
-
write
public 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- Specified by:
writein interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
write
public 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- Specified by:
writein interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
write
public 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- Specified by:
writein interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
write
public 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- Specified by:
writein interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
write
public 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- Specified by:
writein interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
write
public 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- Specified by:
writein interfaceorg.uberfire.io.IOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
-