public interface IOService
extends org.uberfire.commons.lifecycle.PriorityDisposable
| Modifier and Type | Interface and Description |
|---|---|
static class |
IOService.NewFileSystemListener |
| Modifier and Type | Field and Description |
|---|---|
static Set<OpenOption> |
EMPTY_OPTIONS |
static final Set<OpenOption> EMPTY_OPTIONS
void startBatch(FileSystem fs)
void startBatch(FileSystem[] fs, Option... options)
void startBatch(FileSystem fs, Option... options)
void startBatch(FileSystem... fs)
void endBatch()
org.uberfire.java.nio.file.attribute.FileAttribute<?>[] convert(Map<String,?> attrs)
Path get(String first, String... more) throws IllegalArgumentException
IllegalArgumentExceptionPath get(URI uri) throws IllegalArgumentException, FileSystemNotFoundException, SecurityException
Iterable<FileSystem> getFileSystems()
FileSystem getFileSystem(URI uri) throws IllegalArgumentException, FileSystemNotFoundException, ProviderNotFoundException, SecurityException
FileSystem newFileSystem(URI uri, Map<String,?> env) throws IllegalArgumentException, FileSystemAlreadyExistsException, ProviderNotFoundException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionFileSystemAlreadyExistsExceptionProviderNotFoundExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionvoid onNewFileSystem(IOService.NewFileSystemListener listener)
InputStream newInputStream(Path path, OpenOption... options) throws IllegalArgumentException, NoSuchFileException, UnsupportedOperationException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionNoSuchFileExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionOutputStream newOutputStream(Path path, OpenOption... options) throws IllegalArgumentException, UnsupportedOperationException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionorg.uberfire.java.nio.channels.SeekableByteChannel newByteChannel(Path path, OpenOption... options) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionorg.uberfire.java.nio.channels.SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionDirectoryStream<Path> newDirectoryStream(Path dir) throws IllegalArgumentException, NotDirectoryException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionNotDirectoryExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionDirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<Path> filter) throws IllegalArgumentException, NotDirectoryException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionNotDirectoryExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionPath createFile(Path path, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionPath createDirectory(Path dir, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionPath createDirectories(Path dir, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws UnsupportedOperationException, FileAlreadyExistsException, org.uberfire.java.nio.IOException, SecurityException
UnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionPath createDirectory(Path dir, Map<String,?> attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionPath createDirectories(Path dir, Map<String,?> attrs) throws UnsupportedOperationException, FileAlreadyExistsException, org.uberfire.java.nio.IOException, SecurityException
UnsupportedOperationExceptionFileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionvoid delete(Path path, DeleteOption... options) throws IllegalArgumentException, NoSuchFileException, DirectoryNotEmptyException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionNoSuchFileExceptionDirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionboolean deleteIfExists(Path path, DeleteOption... options) throws IllegalArgumentException, DirectoryNotEmptyException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionDirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionPath createTempFile(String prefix, String suffix, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionPath createTempFile(Path dir, String prefix, String suffix, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionPath createTempDirectory(String prefix, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionPath createTempDirectory(Path dir, String prefix, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionPath copy(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, org.uberfire.java.nio.IOException, SecurityException
UnsupportedOperationExceptionFileAlreadyExistsExceptionDirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionPath move(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, AtomicMoveNotSupportedException, org.uberfire.java.nio.IOException, SecurityException
UnsupportedOperationExceptionFileAlreadyExistsExceptionDirectoryNotEmptyExceptionAtomicMoveNotSupportedExceptionorg.uberfire.java.nio.IOExceptionSecurityException<V extends org.uberfire.java.nio.file.attribute.FileAttributeView> V getFileAttributeView(Path path, Class<V> type) throws IllegalArgumentException
IllegalArgumentExceptionMap<String,Object> readAttributes(Path path) throws UnsupportedOperationException, NoSuchFileException, IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException
UnsupportedOperationExceptionNoSuchFileExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionMap<String,Object> readAttributes(Path path, String attributes) throws UnsupportedOperationException, NoSuchFileException, IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException
UnsupportedOperationExceptionNoSuchFileExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionPath setAttributes(Path path, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, org.uberfire.java.nio.IOException, SecurityException
UnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionPath setAttributes(Path path, Map<String,Object> attrs) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, org.uberfire.java.nio.IOException, SecurityException
UnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionPath setAttribute(Path path, String attribute, Object value) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, org.uberfire.java.nio.IOException, SecurityException
UnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionObject getAttribute(Path path, String attribute) throws UnsupportedOperationException, IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException
UnsupportedOperationExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionorg.uberfire.java.nio.file.attribute.FileTime getLastModifiedTime(Path path) throws IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionlong size(Path path) throws IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionboolean exists(Path path) throws IllegalArgumentException, SecurityException
boolean notExists(Path path) throws IllegalArgumentException, SecurityException
boolean isSameFile(Path path, Path path2) throws IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionBufferedReader newBufferedReader(Path path, Charset cs) throws IllegalArgumentException, NoSuchFileException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionNoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionBufferedWriter newBufferedWriter(Path path, Charset cs, OpenOption... options) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException, SecurityException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityExceptionlong copy(InputStream in, Path target, CopyOption... options) throws org.uberfire.java.nio.IOException, FileAlreadyExistsException, DirectoryNotEmptyException, UnsupportedOperationException, SecurityException
org.uberfire.java.nio.IOExceptionFileAlreadyExistsExceptionDirectoryNotEmptyExceptionUnsupportedOperationExceptionSecurityExceptionlong copy(Path source, OutputStream out) throws org.uberfire.java.nio.IOException, SecurityException
org.uberfire.java.nio.IOExceptionSecurityExceptionbyte[] readAllBytes(Path path) throws org.uberfire.java.nio.IOException, OutOfMemoryError, SecurityException
org.uberfire.java.nio.IOExceptionOutOfMemoryErrorSecurityExceptionList<String> readAllLines(Path path) throws IllegalArgumentException, NoSuchFileException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionNoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionList<String> readAllLines(Path path, Charset cs) throws IllegalArgumentException, NoSuchFileException, org.uberfire.java.nio.IOException, SecurityException
IllegalArgumentExceptionNoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityExceptionString readAllString(Path path, Charset cs) throws IllegalArgumentException, NoSuchFileException, org.uberfire.java.nio.IOException
IllegalArgumentExceptionNoSuchFileExceptionorg.uberfire.java.nio.IOExceptionString readAllString(Path path) throws IllegalArgumentException, NoSuchFileException, org.uberfire.java.nio.IOException
IllegalArgumentExceptionNoSuchFileExceptionorg.uberfire.java.nio.IOExceptionPath write(Path path, byte[] bytes, OpenOption... options) throws org.uberfire.java.nio.IOException, UnsupportedOperationException, SecurityException
org.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityExceptionPath write(Path path, byte[] bytes, Map<String,?> attrs, OpenOption... options) throws org.uberfire.java.nio.IOException, UnsupportedOperationException, SecurityException
org.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityExceptionPath write(Path path, byte[] bytes, Set<? extends OpenOption> options, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionPath write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException, SecurityException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityExceptionPath write(Path path, String content, OpenOption... options) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionPath write(Path path, String content, Charset cs, OpenOption... options) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionPath write(Path path, String content, Set<? extends OpenOption> options, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionPath write(Path path, String content, Charset cs, Set<? extends OpenOption> options, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionPath write(Path path, String content, Map<String,?> attrs, OpenOption... options) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionPath write(Path path, String content, Charset cs, Map<String,?> attrs, OpenOption... options) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionCopyright © 2012–2017 JBoss by Red Hat. All rights reserved.