IOService.NewFileSystemListener
EMPTY_OPTIONS
Constructor and Description |
---|
IOSecurityService(IOService service,
org.jboss.errai.security.shared.service.AuthenticationService authenticationService,
AuthorizationManager authManager) |
public IOSecurityService(IOService service, org.jboss.errai.security.shared.service.AuthenticationService authenticationService, AuthorizationManager authManager)
public void dispose()
dispose
in interface org.uberfire.commons.lifecycle.Disposable
public int priority()
priority
in interface org.uberfire.commons.lifecycle.PriorityDisposable
public void startBatch(FileSystem fs)
startBatch
in interface IOService
public void startBatch(FileSystem fs, Option... options)
startBatch
in interface IOService
public FileAttribute<?>[] convert(Map<String,?> attrs)
public Path get(String first, String... more) throws IllegalArgumentException
get
in interface IOService
IllegalArgumentException
public Path get(URI uri) throws IllegalArgumentException, FileSystemNotFoundException, SecurityException
get
in interface IOService
IllegalArgumentException
FileSystemNotFoundException
SecurityException
public Iterable<FileSystemMetadata> getFileSystemMetadata()
getFileSystemMetadata
in interface IOService
public FileSystem getFileSystem(URI uri) throws IllegalArgumentException, FileSystemNotFoundException, ProviderNotFoundException, SecurityException
getFileSystem
in interface IOService
IllegalArgumentException
FileSystemNotFoundException
ProviderNotFoundException
SecurityException
public FileSystem newFileSystem(URI uri, Map<String,?> env) throws IllegalArgumentException, FileSystemAlreadyExistsException, ProviderNotFoundException, IOException, SecurityException
newFileSystem
in interface IOService
IllegalArgumentException
FileSystemAlreadyExistsException
ProviderNotFoundException
IOException
SecurityException
public void onNewFileSystem(IOService.NewFileSystemListener listener)
onNewFileSystem
in interface IOService
public InputStream newInputStream(Path path, OpenOption... options) throws IllegalArgumentException, NoSuchFileException, UnsupportedOperationException, IOException, SecurityException
newInputStream
in interface IOService
IllegalArgumentException
NoSuchFileException
UnsupportedOperationException
IOException
SecurityException
public OutputStream newOutputStream(Path path, OpenOption... options) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
newOutputStream
in interface IOService
IllegalArgumentException
UnsupportedOperationException
IOException
SecurityException
public SeekableByteChannel newByteChannel(Path path, OpenOption... options) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
newByteChannel
in interface IOService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
newByteChannel
in interface IOService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public DirectoryStream<Path> newDirectoryStream(Path dir) throws IllegalArgumentException, NotDirectoryException, IOException, SecurityException
newDirectoryStream
in interface IOService
IllegalArgumentException
NotDirectoryException
IOException
SecurityException
public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<Path> filter) throws IllegalArgumentException, NotDirectoryException, IOException, SecurityException
newDirectoryStream
in interface IOService
IllegalArgumentException
NotDirectoryException
IOException
SecurityException
public Path createFile(Path path, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createFile
in interface IOService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public Path createDirectory(Path dir, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectory
in interface IOService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public Path createDirectories(Path dir, FileAttribute<?>... attrs) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectories
in interface IOService
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public Path createDirectory(Path dir, Map<String,?> attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectory
in interface IOService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public Path createDirectories(Path dir, Map<String,?> attrs) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectories
in interface IOService
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public void delete(Path path, DeleteOption... options) throws IllegalArgumentException, NoSuchFileException, DirectoryNotEmptyException, IOException, SecurityException
delete
in interface IOService
IllegalArgumentException
NoSuchFileException
DirectoryNotEmptyException
IOException
SecurityException
public boolean deleteIfExists(Path path, DeleteOption... options) throws IllegalArgumentException, DirectoryNotEmptyException, IOException, SecurityException
deleteIfExists
in interface IOService
IllegalArgumentException
DirectoryNotEmptyException
IOException
SecurityException
public Path createTempFile(String prefix, String suffix, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
createTempFile
in interface IOService
IllegalArgumentException
UnsupportedOperationException
IOException
SecurityException
public Path createTempFile(Path dir, String prefix, String suffix, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
createTempFile
in interface IOService
IllegalArgumentException
UnsupportedOperationException
IOException
SecurityException
public Path createTempDirectory(String prefix, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
createTempDirectory
in interface IOService
IllegalArgumentException
UnsupportedOperationException
IOException
SecurityException
public Path createTempDirectory(Path dir, String prefix, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
createTempDirectory
in interface IOService
IllegalArgumentException
UnsupportedOperationException
IOException
SecurityException
public Path copy(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, IOException, SecurityException
copy
in interface IOService
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
IOException
SecurityException
public Path move(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, AtomicMoveNotSupportedException, IOException, SecurityException
move
in interface IOService
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
AtomicMoveNotSupportedException
IOException
SecurityException
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type) throws IllegalArgumentException
getFileAttributeView
in interface IOService
IllegalArgumentException
public Map<String,Object> readAttributes(Path path) throws UnsupportedOperationException, NoSuchFileException, IllegalArgumentException, IOException, SecurityException
readAttributes
in interface IOService
UnsupportedOperationException
NoSuchFileException
IllegalArgumentException
IOException
SecurityException
public Map<String,Object> readAttributes(Path path, String attributes) throws UnsupportedOperationException, NoSuchFileException, IllegalArgumentException, IOException, SecurityException
readAttributes
in interface IOService
UnsupportedOperationException
NoSuchFileException
IllegalArgumentException
IOException
SecurityException
public Path setAttributes(Path path, FileAttribute<?>... attrs) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, IOException, SecurityException
setAttributes
in interface IOService
UnsupportedOperationException
IllegalArgumentException
ClassCastException
IOException
SecurityException
public Path setAttributes(Path path, Map<String,Object> attrs) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, IOException, SecurityException
setAttributes
in interface IOService
UnsupportedOperationException
IllegalArgumentException
ClassCastException
IOException
SecurityException
public Path setAttribute(Path path, String attribute, Object value) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, IOException, SecurityException
setAttribute
in interface IOService
UnsupportedOperationException
IllegalArgumentException
ClassCastException
IOException
SecurityException
public Object getAttribute(Path path, String attribute) throws UnsupportedOperationException, IllegalArgumentException, IOException, SecurityException
getAttribute
in interface IOService
UnsupportedOperationException
IllegalArgumentException
IOException
SecurityException
public FileTime getLastModifiedTime(Path path) throws IllegalArgumentException, IOException, SecurityException
getLastModifiedTime
in interface IOService
IllegalArgumentException
IOException
SecurityException
public long size(Path path) throws IllegalArgumentException, IOException, SecurityException
size
in interface IOService
IllegalArgumentException
IOException
SecurityException
public boolean exists(Path path) throws IllegalArgumentException, SecurityException
exists
in interface IOService
IllegalArgumentException
SecurityException
public boolean notExists(Path path) throws IllegalArgumentException, SecurityException
notExists
in interface IOService
IllegalArgumentException
SecurityException
public boolean isSameFile(Path path, Path path2) throws IllegalArgumentException, IOException, SecurityException
isSameFile
in interface IOService
IllegalArgumentException
IOException
SecurityException
public BufferedReader newBufferedReader(Path path, Charset cs) throws IllegalArgumentException, NoSuchFileException, IOException, SecurityException
newBufferedReader
in interface IOService
IllegalArgumentException
NoSuchFileException
IOException
SecurityException
public BufferedWriter newBufferedWriter(Path path, Charset cs, OpenOption... options) throws IllegalArgumentException, IOException, UnsupportedOperationException, SecurityException
newBufferedWriter
in interface IOService
IllegalArgumentException
IOException
UnsupportedOperationException
SecurityException
public long copy(InputStream in, Path target, CopyOption... options) throws IOException, FileAlreadyExistsException, DirectoryNotEmptyException, UnsupportedOperationException, SecurityException
copy
in interface IOService
IOException
FileAlreadyExistsException
DirectoryNotEmptyException
UnsupportedOperationException
SecurityException
public long copy(Path source, OutputStream out) throws IOException, SecurityException
copy
in interface IOService
IOException
SecurityException
public byte[] readAllBytes(Path path) throws IOException, OutOfMemoryError, SecurityException
readAllBytes
in interface IOService
IOException
OutOfMemoryError
SecurityException
public List<String> readAllLines(Path path) throws IllegalArgumentException, NoSuchFileException, IOException, SecurityException
readAllLines
in interface IOService
IllegalArgumentException
NoSuchFileException
IOException
SecurityException
public List<String> readAllLines(Path path, Charset cs) throws IllegalArgumentException, NoSuchFileException, IOException, SecurityException
readAllLines
in interface IOService
IllegalArgumentException
NoSuchFileException
IOException
SecurityException
public String readAllString(Path path, Charset cs) throws IllegalArgumentException, NoSuchFileException, IOException
readAllString
in interface IOService
IllegalArgumentException
NoSuchFileException
IOException
public String readAllString(Path path) throws IllegalArgumentException, NoSuchFileException, IOException
readAllString
in interface IOService
IllegalArgumentException
NoSuchFileException
IOException
public Path write(Path path, byte[] bytes, OpenOption... options) throws IOException, UnsupportedOperationException, SecurityException
write
in interface IOService
IOException
UnsupportedOperationException
SecurityException
public Path write(Path path, byte[] bytes, Map<String,?> attrs, OpenOption... options) throws IOException, UnsupportedOperationException, SecurityException
write
in interface IOService
IOException
UnsupportedOperationException
SecurityException
public Path write(Path path, byte[] bytes, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IllegalArgumentException, IOException, UnsupportedOperationException
write
in interface IOService
IllegalArgumentException
IOException
UnsupportedOperationException
public Path write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options) throws IllegalArgumentException, IOException, UnsupportedOperationException, SecurityException
write
in interface IOService
IllegalArgumentException
IOException
UnsupportedOperationException
SecurityException
public Path write(Path path, String content, OpenOption... options) throws IllegalArgumentException, IOException, UnsupportedOperationException
write
in interface IOService
IllegalArgumentException
IOException
UnsupportedOperationException
public Path write(Path path, String content, Charset cs, OpenOption... options) throws IllegalArgumentException, IOException, UnsupportedOperationException
write
in interface IOService
IllegalArgumentException
IOException
UnsupportedOperationException
public Path write(Path path, String content, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IllegalArgumentException, IOException, UnsupportedOperationException
write
in interface IOService
IllegalArgumentException
IOException
UnsupportedOperationException
public Path write(Path path, String content, Charset cs, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IllegalArgumentException, IOException, UnsupportedOperationException
write
in interface IOService
IllegalArgumentException
IOException
UnsupportedOperationException
public Path write(Path path, String content, Map<String,?> attrs, OpenOption... options) throws IllegalArgumentException, IOException, UnsupportedOperationException
write
in interface IOService
IllegalArgumentException
IOException
UnsupportedOperationException
public Path write(Path path, String content, Charset cs, Map<String,?> attrs, OpenOption... options) throws IllegalArgumentException, IOException, UnsupportedOperationException
write
in interface IOService
IllegalArgumentException
IOException
UnsupportedOperationException
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.