Package org.uberfire.io.impl
Class AbstractIOService
- java.lang.Object
-
- org.uberfire.io.impl.AbstractIOService
-
- All Implemented Interfaces:
org.uberfire.commons.lifecycle.Disposable,org.uberfire.commons.lifecycle.PriorityDisposable,IOServiceIdentifiable,IOServiceLockable,IOService
- Direct Known Subclasses:
IOServiceDotFileImpl,IOServiceNio2WrapperImpl
public abstract class AbstractIOService extends Object implements IOServiceIdentifiable, IOServiceLockable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.uberfire.io.IOService
IOService.NewFileSystemListener
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDEFAULT_SERVICE_NAMEprotected Set<org.uberfire.java.nio.file.FileSystemMetadata>fileSystemsprotected IOWatchServiceioWatchServiceprotected booleanisDisposedprotected IOService.NewFileSystemListenernewFileSystemListenerprotected static CharsetUTF_8-
Fields inherited from interface org.uberfire.io.IOService
EMPTY_OPTIONS
-
-
Constructor Summary
Constructors Constructor Description AbstractIOService()AbstractIOService(String id)AbstractIOService(String id, IOWatchService watchService)AbstractIOService(IOWatchService watchService)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Set<? extends org.uberfire.java.nio.file.OpenOption>buildOptions(Set<? extends org.uberfire.java.nio.file.OpenOption> options, org.uberfire.java.nio.file.OpenOption... other)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.PathcreateDirectories(org.uberfire.java.nio.file.Path dir, Map<String,?> attrs)org.uberfire.java.nio.file.PathcreateDirectory(org.uberfire.java.nio.file.Path dir, Map<String,?> 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)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)org.uberfire.java.nio.file.FileSystemgetFileSystem(URI uri)Iterable<org.uberfire.java.nio.file.FileSystemMetadata>getFileSystemMetadata()StringgetId()org.uberfire.java.nio.file.attribute.FileTimegetLastModifiedTime(org.uberfire.java.nio.file.Path path)BatchLockControlgetLockControl()booleanisSameFile(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.Path path2)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, 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(IOService.NewFileSystemListener listener)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)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)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)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.uberfire.io.IOService
copy, createDirectories, createDirectory, delete, deleteIfExists, getAttribute, getFileAttributeView, move, newByteChannel, readAttributes, setAttributes
-
-
-
-
Field Detail
-
DEFAULT_SERVICE_NAME
protected static final String DEFAULT_SERVICE_NAME
- See Also:
- Constant Field Values
-
UTF_8
protected static final Charset UTF_8
-
ioWatchService
protected final IOWatchService ioWatchService
-
fileSystems
protected final Set<org.uberfire.java.nio.file.FileSystemMetadata> fileSystems
-
newFileSystemListener
protected IOService.NewFileSystemListener newFileSystemListener
-
isDisposed
protected boolean isDisposed
-
-
Constructor Detail
-
AbstractIOService
public AbstractIOService()
-
AbstractIOService
public AbstractIOService(String id)
-
AbstractIOService
public AbstractIOService(IOWatchService watchService)
-
AbstractIOService
public AbstractIOService(String id, IOWatchService watchService)
-
-
Method Detail
-
startBatch
public void startBatch(org.uberfire.java.nio.file.FileSystem fs)
- Specified by:
startBatchin interfaceIOService
-
startBatch
public void startBatch(org.uberfire.java.nio.file.FileSystem fs, org.uberfire.java.nio.file.Option... options)- Specified by:
startBatchin interfaceIOService
-
getLockControl
public BatchLockControl getLockControl()
- Specified by:
getLockControlin interfaceIOServiceLockable
-
get
public org.uberfire.java.nio.file.Path get(String first, String... more) throws IllegalArgumentException
- Specified by:
getin interfaceIOService- 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 interfaceIOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.FileSystemNotFoundExceptionSecurityException
-
getFileSystemMetadata
public Iterable<org.uberfire.java.nio.file.FileSystemMetadata> getFileSystemMetadata()
- Specified by:
getFileSystemMetadatain interfaceIOService
-
getFileSystem
public org.uberfire.java.nio.file.FileSystem getFileSystem(URI uri)
- Specified by:
getFileSystemin interfaceIOService
-
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 interfaceIOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.FileSystemAlreadyExistsExceptionorg.uberfire.java.nio.file.ProviderNotFoundExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
onNewFileSystem
public void onNewFileSystem(IOService.NewFileSystemListener listener)
- Specified by:
onNewFileSystemin interfaceIOService
-
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 interfaceIOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionUnsupportedOperationExceptionorg.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 interfaceIOService- 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 interfaceIOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NotDirectoryExceptionorg.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 interfaceIOService- 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 interfaceIOService- 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, Map<String,?> attrs) throws IllegalArgumentException, UnsupportedOperationException, org.uberfire.java.nio.file.FileAlreadyExistsException, org.uberfire.java.nio.IOException, SecurityException- Specified by:
createDirectoryin interfaceIOService- 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 interfaceIOService- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.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 interfaceIOService- 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 interfaceIOService- 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 interfaceIOService- 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 interfaceIOService- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.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 interfaceIOService- Throws:
IllegalArgumentExceptionorg.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 interfaceIOService- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
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 interfaceIOService- 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, Map<String,Object> attrs) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, org.uberfire.java.nio.IOException, SecurityException- Specified by:
setAttributesin interfaceIOService- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.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 interfaceIOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
exists
public boolean exists(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, SecurityException- Specified by:
existsin interfaceIOService- Throws:
IllegalArgumentExceptionSecurityException
-
notExists
public boolean notExists(org.uberfire.java.nio.file.Path path) throws IllegalArgumentException, SecurityException- Specified by:
notExistsin interfaceIOService- 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 interfaceIOService- Throws:
IllegalArgumentExceptionorg.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 interfaceIOService- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.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 interfaceIOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
copy
public long copy(org.uberfire.java.nio.file.Path source, OutputStream out) throws org.uberfire.java.nio.IOException, SecurityException- Specified by:
copyin interfaceIOService- 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 interfaceIOService- 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 interfaceIOService- 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 interfaceIOService- 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 interfaceIOService- 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 interfaceIOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.IOException
-
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 interfaceIOService- 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 interfaceIOService- Throws:
org.uberfire.java.nio.IOExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionUnsupportedOperationExceptionSecurityException
-
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 interfaceIOService- Throws:
org.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityException
-
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 interfaceIOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityException
-
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 interfaceIOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
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 interfaceIOService- 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 interfaceIOService- 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 interfaceIOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
dispose
public void dispose()
- Specified by:
disposein interfaceorg.uberfire.commons.lifecycle.Disposable
-
convert
public org.uberfire.java.nio.file.attribute.FileAttribute<?>[] convert(Map<String,?> attrs)
-
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 interfaceIOService- Throws:
org.uberfire.java.nio.IOExceptionUnsupportedOperationExceptionSecurityException
-
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 interfaceIOService- 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 interfaceIOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
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 interfaceIOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
buildOptions
protected abstract Set<? extends org.uberfire.java.nio.file.OpenOption> buildOptions(Set<? extends org.uberfire.java.nio.file.OpenOption> options, org.uberfire.java.nio.file.OpenOption... other)
-
getId
public String getId()
- Specified by:
getIdin interfaceIOServiceIdentifiable
-
-