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 endBatch()
FileAttribute<?>[] convert(Map<String,?> attrs)
Path get(String first, String... more) throws IllegalArgumentException
IllegalArgumentException
Path get(URI uri) throws IllegalArgumentException, FileSystemNotFoundException, SecurityException
Iterable<FileSystemMetadata> getFileSystemMetadata()
FileSystem getFileSystem(URI uri) throws IllegalArgumentException, FileSystemNotFoundException, ProviderNotFoundException, SecurityException
FileSystem newFileSystem(URI uri, Map<String,?> env) throws IllegalArgumentException, FileSystemAlreadyExistsException, ProviderNotFoundException, IOException, SecurityException
void onNewFileSystem(IOService.NewFileSystemListener listener)
InputStream newInputStream(Path path, OpenOption... options) throws IllegalArgumentException, NoSuchFileException, UnsupportedOperationException, IOException, SecurityException
OutputStream newOutputStream(Path path, OpenOption... options) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
SeekableByteChannel newByteChannel(Path path, OpenOption... options) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
DirectoryStream<Path> newDirectoryStream(Path dir) throws IllegalArgumentException, NotDirectoryException, IOException, SecurityException
DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<Path> filter) throws IllegalArgumentException, NotDirectoryException, IOException, SecurityException
Path createFile(Path path, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
Path createDirectory(Path dir, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
Path createDirectories(Path dir, FileAttribute<?>... attrs) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
Path createDirectory(Path dir, Map<String,?> attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
Path createDirectories(Path dir, Map<String,?> attrs) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
void delete(Path path, DeleteOption... options) throws IllegalArgumentException, NoSuchFileException, DirectoryNotEmptyException, IOException, SecurityException
boolean deleteIfExists(Path path, DeleteOption... options) throws IllegalArgumentException, DirectoryNotEmptyException, IOException, SecurityException
Path createTempFile(String prefix, String suffix, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
Path createTempFile(Path dir, String prefix, String suffix, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
Path createTempDirectory(String prefix, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
Path createTempDirectory(Path dir, String prefix, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException
Path copy(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, IOException, SecurityException
Path move(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, AtomicMoveNotSupportedException, IOException, SecurityException
<V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type) throws IllegalArgumentException
IllegalArgumentException
Map<String,Object> readAttributes(Path path) throws UnsupportedOperationException, NoSuchFileException, IllegalArgumentException, IOException, SecurityException
Map<String,Object> readAttributes(Path path, String attributes) throws UnsupportedOperationException, NoSuchFileException, IllegalArgumentException, IOException, SecurityException
Path setAttributes(Path path, FileAttribute<?>... attrs) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, IOException, SecurityException
Path setAttributes(Path path, Map<String,Object> attrs) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, IOException, SecurityException
Path setAttribute(Path path, String attribute, Object value) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, IOException, SecurityException
Object getAttribute(Path path, String attribute) throws UnsupportedOperationException, IllegalArgumentException, IOException, SecurityException
FileTime getLastModifiedTime(Path path) throws IllegalArgumentException, IOException, SecurityException
long size(Path path) throws IllegalArgumentException, IOException, SecurityException
boolean exists(Path path) throws IllegalArgumentException, SecurityException
boolean notExists(Path path) throws IllegalArgumentException, SecurityException
boolean isSameFile(Path path, Path path2) throws IllegalArgumentException, IOException, SecurityException
BufferedReader newBufferedReader(Path path, Charset cs) throws IllegalArgumentException, NoSuchFileException, IOException, SecurityException
BufferedWriter newBufferedWriter(Path path, Charset cs, OpenOption... options) throws IllegalArgumentException, IOException, UnsupportedOperationException, SecurityException
long copy(InputStream in, Path target, CopyOption... options) throws IOException, FileAlreadyExistsException, DirectoryNotEmptyException, UnsupportedOperationException, SecurityException
long copy(Path source, OutputStream out) throws IOException, SecurityException
IOException
SecurityException
byte[] readAllBytes(Path path) throws IOException, OutOfMemoryError, SecurityException
List<String> readAllLines(Path path) throws IllegalArgumentException, NoSuchFileException, IOException, SecurityException
List<String> readAllLines(Path path, Charset cs) throws IllegalArgumentException, NoSuchFileException, IOException, SecurityException
String readAllString(Path path, Charset cs) throws IllegalArgumentException, NoSuchFileException, IOException
String readAllString(Path path) throws IllegalArgumentException, NoSuchFileException, IOException
Path write(Path path, byte[] bytes, OpenOption... options) throws IOException, UnsupportedOperationException, SecurityException
Path write(Path path, byte[] bytes, Map<String,?> attrs, OpenOption... options) throws IOException, UnsupportedOperationException, SecurityException
Path write(Path path, byte[] bytes, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IllegalArgumentException, IOException, UnsupportedOperationException
Path write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options) throws IllegalArgumentException, IOException, UnsupportedOperationException, SecurityException
Path write(Path path, String content, OpenOption... options) throws IllegalArgumentException, IOException, UnsupportedOperationException
Path write(Path path, String content, Charset cs, OpenOption... options) throws IllegalArgumentException, IOException, UnsupportedOperationException
Path write(Path path, String content, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IllegalArgumentException, IOException, UnsupportedOperationException
Path write(Path path, String content, Charset cs, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IllegalArgumentException, IOException, UnsupportedOperationException
Path write(Path path, String content, Map<String,?> attrs, OpenOption... options) throws IllegalArgumentException, IOException, UnsupportedOperationException
Path write(Path path, String content, Charset cs, Map<String,?> attrs, OpenOption... options) throws IllegalArgumentException, IOException, UnsupportedOperationException
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.