org.kie.commons.io.impl.cluster
IOService.NewFileSystemListener
EMPTY_OPTIONS
Constructor and Description |
---|
IOServiceClusterImpl(IOService service,
org.kie.commons.cluster.ClusterServiceFactory clusterServiceFactory) |
public IOServiceClusterImpl(IOService service, org.kie.commons.cluster.ClusterServiceFactory clusterServiceFactory)
public void startBatch()
startBatch
in interface IOService
public org.kie.commons.java.nio.file.attribute.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<FileSystem> getFileSystems()
getFileSystems
in interface IOService
public Iterable<FileSystem> getFileSystems(FileSystemType type)
getFileSystems
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, org.kie.commons.java.nio.IOException, SecurityException
newFileSystem
in interface IOService
IllegalArgumentException
FileSystemAlreadyExistsException
ProviderNotFoundException
org.kie.commons.java.nio.IOException
SecurityException
public FileSystem newFileSystem(URI uri, Map<String,?> env, FileSystemType type) throws IllegalArgumentException, FileSystemAlreadyExistsException, ProviderNotFoundException, org.kie.commons.java.nio.IOException, SecurityException
newFileSystem
in interface IOService
IllegalArgumentException
FileSystemAlreadyExistsException
ProviderNotFoundException
org.kie.commons.java.nio.IOException
SecurityException
public void onNewFileSystem(IOService.NewFileSystemListener listener)
onNewFileSystem
in interface IOService
public InputStream newInputStream(Path path, OpenOption... options) throws IllegalArgumentException, NoSuchFileException, UnsupportedOperationException, org.kie.commons.java.nio.IOException, SecurityException
newInputStream
in interface IOService
IllegalArgumentException
NoSuchFileException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
public DirectoryStream<Path> newDirectoryStream(Path dir) throws IllegalArgumentException, NotDirectoryException, org.kie.commons.java.nio.IOException, SecurityException
newDirectoryStream
in interface IOService
IllegalArgumentException
NotDirectoryException
org.kie.commons.java.nio.IOException
SecurityException
public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<Path> filter) throws IllegalArgumentException, NotDirectoryException, org.kie.commons.java.nio.IOException, SecurityException
newDirectoryStream
in interface IOService
IllegalArgumentException
NotDirectoryException
org.kie.commons.java.nio.IOException
SecurityException
public Path createFile(Path path, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, org.kie.commons.java.nio.IOException, SecurityException
createFile
in interface IOService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
public Path createDirectory(Path dir, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, org.kie.commons.java.nio.IOException, SecurityException
createDirectory
in interface IOService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
public Path createDirectories(Path dir, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws UnsupportedOperationException, FileAlreadyExistsException, org.kie.commons.java.nio.IOException, SecurityException
createDirectories
in interface IOService
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
public Path createDirectory(Path dir, Map<String,?> attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, org.kie.commons.java.nio.IOException, SecurityException
createDirectory
in interface IOService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
public Path createDirectories(Path dir, Map<String,?> attrs) throws UnsupportedOperationException, FileAlreadyExistsException, org.kie.commons.java.nio.IOException, SecurityException
createDirectories
in interface IOService
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
public void delete(Path path) throws IllegalArgumentException, NoSuchFileException, DirectoryNotEmptyException, org.kie.commons.java.nio.IOException, SecurityException
delete
in interface IOService
IllegalArgumentException
NoSuchFileException
DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
public boolean deleteIfExists(Path path) throws IllegalArgumentException, DirectoryNotEmptyException, org.kie.commons.java.nio.IOException, SecurityException
deleteIfExists
in interface IOService
IllegalArgumentException
DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
public Path createTempFile(String prefix, String suffix, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, org.kie.commons.java.nio.IOException, SecurityException
createTempFile
in interface IOService
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
public Path createTempFile(Path dir, String prefix, String suffix, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, org.kie.commons.java.nio.IOException, SecurityException
createTempFile
in interface IOService
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
public Path createTempDirectory(String prefix, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, org.kie.commons.java.nio.IOException, SecurityException
createTempDirectory
in interface IOService
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
public Path createTempDirectory(Path dir, String prefix, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, org.kie.commons.java.nio.IOException, SecurityException
createTempDirectory
in interface IOService
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
public Path copy(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, org.kie.commons.java.nio.IOException, SecurityException
copy
in interface IOService
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
public long copy(InputStream in, Path target, CopyOption... options) throws org.kie.commons.java.nio.IOException, FileAlreadyExistsException, DirectoryNotEmptyException, UnsupportedOperationException, SecurityException
copy
in interface IOService
org.kie.commons.java.nio.IOException
FileAlreadyExistsException
DirectoryNotEmptyException
UnsupportedOperationException
SecurityException
public long copy(Path source, OutputStream out) throws org.kie.commons.java.nio.IOException, SecurityException
copy
in interface IOService
org.kie.commons.java.nio.IOException
SecurityException
public Path move(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, AtomicMoveNotSupportedException, org.kie.commons.java.nio.IOException, SecurityException
move
in interface IOService
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
AtomicMoveNotSupportedException
org.kie.commons.java.nio.IOException
SecurityException
public <V extends org.kie.commons.java.nio.file.attribute.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, org.kie.commons.java.nio.IOException, SecurityException
readAttributes
in interface IOService
UnsupportedOperationException
NoSuchFileException
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
public Map<String,Object> readAttributes(Path path, String attributes) throws UnsupportedOperationException, NoSuchFileException, IllegalArgumentException, org.kie.commons.java.nio.IOException, SecurityException
readAttributes
in interface IOService
UnsupportedOperationException
NoSuchFileException
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
public Path setAttributes(Path path, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, org.kie.commons.java.nio.IOException, SecurityException
setAttributes
in interface IOService
UnsupportedOperationException
IllegalArgumentException
ClassCastException
org.kie.commons.java.nio.IOException
SecurityException
public Path setAttributes(Path path, Map<String,Object> attrs) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, org.kie.commons.java.nio.IOException, SecurityException
setAttributes
in interface IOService
UnsupportedOperationException
IllegalArgumentException
ClassCastException
org.kie.commons.java.nio.IOException
SecurityException
public Path setAttribute(Path path, String attribute, Object value) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, org.kie.commons.java.nio.IOException, SecurityException
setAttribute
in interface IOService
UnsupportedOperationException
IllegalArgumentException
ClassCastException
org.kie.commons.java.nio.IOException
SecurityException
public Object getAttribute(Path path, String attribute) throws UnsupportedOperationException, IllegalArgumentException, org.kie.commons.java.nio.IOException, SecurityException
getAttribute
in interface IOService
UnsupportedOperationException
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
public org.kie.commons.java.nio.file.attribute.FileTime getLastModifiedTime(Path path) throws IllegalArgumentException, org.kie.commons.java.nio.IOException, SecurityException
getLastModifiedTime
in interface IOService
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
public long size(Path path) throws IllegalArgumentException, org.kie.commons.java.nio.IOException, SecurityException
size
in interface IOService
IllegalArgumentException
org.kie.commons.java.nio.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, org.kie.commons.java.nio.IOException, SecurityException
isSameFile
in interface IOService
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
public BufferedReader newBufferedReader(Path path, Charset cs) throws IllegalArgumentException, NoSuchFileException, org.kie.commons.java.nio.IOException, SecurityException
newBufferedReader
in interface IOService
IllegalArgumentException
NoSuchFileException
org.kie.commons.java.nio.IOException
SecurityException
public byte[] readAllBytes(Path path) throws org.kie.commons.java.nio.IOException, OutOfMemoryError, SecurityException
readAllBytes
in interface IOService
org.kie.commons.java.nio.IOException
OutOfMemoryError
SecurityException
public List<String> readAllLines(Path path) throws IllegalArgumentException, NoSuchFileException, org.kie.commons.java.nio.IOException, SecurityException
readAllLines
in interface IOService
IllegalArgumentException
NoSuchFileException
org.kie.commons.java.nio.IOException
SecurityException
public List<String> readAllLines(Path path, Charset cs) throws IllegalArgumentException, NoSuchFileException, org.kie.commons.java.nio.IOException, SecurityException
readAllLines
in interface IOService
IllegalArgumentException
NoSuchFileException
org.kie.commons.java.nio.IOException
SecurityException
public String readAllString(Path path, Charset cs) throws IllegalArgumentException, NoSuchFileException, org.kie.commons.java.nio.IOException
readAllString
in interface IOService
IllegalArgumentException
NoSuchFileException
org.kie.commons.java.nio.IOException
public String readAllString(Path path) throws IllegalArgumentException, NoSuchFileException, org.kie.commons.java.nio.IOException
readAllString
in interface IOService
IllegalArgumentException
NoSuchFileException
org.kie.commons.java.nio.IOException
public Path write(Path path, byte[] bytes, OpenOption... options) throws org.kie.commons.java.nio.IOException, UnsupportedOperationException, SecurityException
write
in interface IOService
org.kie.commons.java.nio.IOException
UnsupportedOperationException
SecurityException
public Path write(Path path, byte[] bytes, Map<String,?> attrs, OpenOption... options) throws org.kie.commons.java.nio.IOException, UnsupportedOperationException, SecurityException
write
in interface IOService
org.kie.commons.java.nio.IOException
UnsupportedOperationException
SecurityException
public Path write(Path path, byte[] bytes, Set<? extends OpenOption> options, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, org.kie.commons.java.nio.IOException, UnsupportedOperationException
write
in interface IOService
IllegalArgumentException
org.kie.commons.java.nio.IOException
UnsupportedOperationException
public Path write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options) throws IllegalArgumentException, org.kie.commons.java.nio.IOException, UnsupportedOperationException, SecurityException
write
in interface IOService
IllegalArgumentException
org.kie.commons.java.nio.IOException
UnsupportedOperationException
SecurityException
public Path write(Path path, String content, OpenOption... options) throws IllegalArgumentException, org.kie.commons.java.nio.IOException, UnsupportedOperationException
write
in interface IOService
IllegalArgumentException
org.kie.commons.java.nio.IOException
UnsupportedOperationException
public Path write(Path path, String content, Charset cs, OpenOption... options) throws IllegalArgumentException, org.kie.commons.java.nio.IOException, UnsupportedOperationException
write
in interface IOService
IllegalArgumentException
org.kie.commons.java.nio.IOException
UnsupportedOperationException
public Path write(Path path, String content, Set<? extends OpenOption> options, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, org.kie.commons.java.nio.IOException, UnsupportedOperationException
write
in interface IOService
IllegalArgumentException
org.kie.commons.java.nio.IOException
UnsupportedOperationException
public Path write(Path path, String content, Charset cs, Set<? extends OpenOption> options, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, org.kie.commons.java.nio.IOException, UnsupportedOperationException
write
in interface IOService
IllegalArgumentException
org.kie.commons.java.nio.IOException
UnsupportedOperationException
public Path write(Path path, String content, Map<String,?> attrs, OpenOption... options) throws IllegalArgumentException, org.kie.commons.java.nio.IOException, UnsupportedOperationException
write
in interface IOService
IllegalArgumentException
org.kie.commons.java.nio.IOException
UnsupportedOperationException
public Path write(Path path, String content, Charset cs, Map<String,?> attrs, OpenOption... options) throws IllegalArgumentException, org.kie.commons.java.nio.IOException, UnsupportedOperationException
write
in interface IOService
IllegalArgumentException
org.kie.commons.java.nio.IOException
UnsupportedOperationException
public OutputStream newOutputStream(Path path, OpenOption... options) throws IllegalArgumentException, UnsupportedOperationException, org.kie.commons.java.nio.IOException, SecurityException
newOutputStream
in interface IOService
IllegalArgumentException
UnsupportedOperationException
org.kie.commons.java.nio.IOException
SecurityException
public org.kie.commons.java.nio.channels.SeekableByteChannel newByteChannel(Path path, OpenOption... options) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, org.kie.commons.java.nio.IOException, SecurityException
newByteChannel
in interface IOService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
public org.kie.commons.java.nio.channels.SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, org.kie.commons.java.nio.IOException, SecurityException
newByteChannel
in interface IOService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
public BufferedWriter newBufferedWriter(Path path, Charset cs, OpenOption... options) throws IllegalArgumentException, org.kie.commons.java.nio.IOException, UnsupportedOperationException, SecurityException
newBufferedWriter
in interface IOService
IllegalArgumentException
org.kie.commons.java.nio.IOException
UnsupportedOperationException
SecurityException
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.