Package org.uberfire.io.impl
Class IOServiceDotFileImpl
- java.lang.Object
-
- org.uberfire.io.impl.AbstractIOService
-
- org.uberfire.io.impl.IOServiceDotFileImpl
-
- All Implemented Interfaces:
org.uberfire.commons.lifecycle.Disposable,org.uberfire.commons.lifecycle.PriorityDisposable,IOServiceIdentifiable,IOServiceLockable,IOService
public class IOServiceDotFileImpl extends AbstractIOService implements IOService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.uberfire.io.IOService
IOService.NewFileSystemListener
-
-
Field Summary
-
Fields inherited from class org.uberfire.io.impl.AbstractIOService
DEFAULT_SERVICE_NAME, fileSystems, ioWatchService, isDisposed, newFileSystemListener, UTF_8
-
Fields inherited from interface org.uberfire.io.IOService
EMPTY_OPTIONS
-
-
Constructor Summary
Constructors Constructor Description IOServiceDotFileImpl()IOServiceDotFileImpl(String serviceId)IOServiceDotFileImpl(String serviceId, IOWatchService watchService)IOServiceDotFileImpl(IOWatchService watchService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<? extends org.uberfire.java.nio.file.OpenOption>buildOptions(Set<? extends org.uberfire.java.nio.file.OpenOption> options, org.uberfire.java.nio.file.OpenOption... others)protected org.uberfire.java.nio.file.CopyOption[]buildOptions(org.uberfire.java.nio.file.CopyOption... options)org.uberfire.java.nio.file.Pathcopy(org.uberfire.java.nio.file.Path source, org.uberfire.java.nio.file.Path target, org.uberfire.java.nio.file.CopyOption... options)org.uberfire.java.nio.file.PathcreateDirectories(org.uberfire.java.nio.file.Path dir, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)org.uberfire.java.nio.file.PathcreateDirectory(org.uberfire.java.nio.file.Path dir, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)voiddelete(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.DeleteOption... options)booleandeleteIfExists(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.DeleteOption... options)protected org.uberfire.java.nio.file.CopyOption[]forceBuildOptions(org.uberfire.java.nio.file.CopyOption[] options)ObjectgetAttribute(org.uberfire.java.nio.file.Path path, String attribute)<V extends org.uberfire.java.nio.file.attribute.FileAttributeView>
VgetFileAttributeView(org.uberfire.java.nio.file.Path path, Class<V> type)protected org.uberfire.java.nio.file.PathinternalCreateDirectory(org.uberfire.java.nio.file.Path dir, boolean skipAlreadyExistsException, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)protected booleanisFileScheme(org.uberfire.java.nio.file.Path path)protected voidloadDotFile(org.uberfire.java.nio.file.Path path)org.uberfire.java.nio.file.Pathmove(org.uberfire.java.nio.file.Path source, org.uberfire.java.nio.file.Path target, org.uberfire.java.nio.file.CopyOption... options)org.uberfire.java.nio.channels.SeekableByteChannelnewByteChannel(org.uberfire.java.nio.file.Path path, Set<? extends org.uberfire.java.nio.file.OpenOption> options, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)protected <V extends org.uberfire.java.nio.base.AbstractBasicFileAttributeView>
VnewView(org.uberfire.java.nio.base.AttrHolder holder, Class<V> type)intpriority()Map<String,Object>readAttributes(org.uberfire.java.nio.file.Path path, String attributes)org.uberfire.java.nio.file.PathsetAttributes(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs)protected String[]split(String attribute)-
Methods inherited from class org.uberfire.io.impl.AbstractIOService
convert, copy, copy, createDirectories, createDirectory, createFile, createTempDirectory, createTempDirectory, createTempFile, createTempFile, dispose, endBatch, exists, get, get, getFileSystem, getFileSystemMetadata, getId, getLastModifiedTime, getLockControl, isSameFile, newBufferedReader, newBufferedWriter, newByteChannel, newDirectoryStream, newDirectoryStream, newFileSystem, newInputStream, newOutputStream, notExists, onNewFileSystem, readAllBytes, readAllLines, readAllLines, readAllString, readAllString, readAttributes, setAttribute, setAttributes, size, startBatch, startBatch, write, write, write, write, write, write, write, write, write, write
-
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
convert, copy, copy, createDirectories, createDirectory, createFile, createTempDirectory, createTempDirectory, createTempFile, createTempFile, endBatch, exists, get, get, getFileSystem, getFileSystemMetadata, getLastModifiedTime, isSameFile, newBufferedReader, newBufferedWriter, newByteChannel, newDirectoryStream, newDirectoryStream, newFileSystem, newInputStream, newOutputStream, notExists, onNewFileSystem, readAllBytes, readAllLines, readAllLines, readAllString, readAllString, readAttributes, setAttribute, setAttributes, size, startBatch, startBatch, write, write, write, write, write, write, write, write, write, write
-
-
-
-
Constructor Detail
-
IOServiceDotFileImpl
public IOServiceDotFileImpl()
-
IOServiceDotFileImpl
public IOServiceDotFileImpl(String serviceId)
-
IOServiceDotFileImpl
public IOServiceDotFileImpl(IOWatchService watchService)
-
IOServiceDotFileImpl
public IOServiceDotFileImpl(String serviceId, IOWatchService watchService)
-
-
Method Detail
-
delete
public void delete(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.DeleteOption... options) throws IllegalArgumentException, org.uberfire.java.nio.file.NoSuchFileException, org.uberfire.java.nio.file.DirectoryNotEmptyException, org.uberfire.java.nio.IOException, SecurityException- Specified by:
deletein interfaceIOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.NoSuchFileExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
deleteIfExists
public boolean deleteIfExists(org.uberfire.java.nio.file.Path path, org.uberfire.java.nio.file.DeleteOption... options) throws IllegalArgumentException, org.uberfire.java.nio.file.DirectoryNotEmptyException, org.uberfire.java.nio.IOException, SecurityException- Specified by:
deleteIfExistsin interfaceIOService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
newByteChannel
public org.uberfire.java.nio.channels.SeekableByteChannel newByteChannel(org.uberfire.java.nio.file.Path path, Set<? extends org.uberfire.java.nio.file.OpenOption> options, 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:
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, 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:
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, org.uberfire.java.nio.file.attribute.FileAttribute<?>... 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
-
copy
public org.uberfire.java.nio.file.Path copy(org.uberfire.java.nio.file.Path source, org.uberfire.java.nio.file.Path target, org.uberfire.java.nio.file.CopyOption... options) throws UnsupportedOperationException, org.uberfire.java.nio.file.FileAlreadyExistsException, org.uberfire.java.nio.file.DirectoryNotEmptyException, org.uberfire.java.nio.IOException, SecurityException- Specified by:
copyin interfaceIOService- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
move
public org.uberfire.java.nio.file.Path move(org.uberfire.java.nio.file.Path source, org.uberfire.java.nio.file.Path target, org.uberfire.java.nio.file.CopyOption... options) throws UnsupportedOperationException, org.uberfire.java.nio.file.FileAlreadyExistsException, org.uberfire.java.nio.file.DirectoryNotEmptyException, org.uberfire.java.nio.file.AtomicMoveNotSupportedException, org.uberfire.java.nio.IOException, SecurityException- Specified by:
movein interfaceIOService- Throws:
UnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.file.DirectoryNotEmptyExceptionorg.uberfire.java.nio.file.AtomicMoveNotSupportedExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
getFileAttributeView
public <V extends org.uberfire.java.nio.file.attribute.FileAttributeView> V getFileAttributeView(org.uberfire.java.nio.file.Path path, Class<V> type) throws IllegalArgumentException- Specified by:
getFileAttributeViewin interfaceIOService- Throws:
IllegalArgumentException
-
readAttributes
public Map<String,Object> readAttributes(org.uberfire.java.nio.file.Path path, String attributes) 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, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, org.uberfire.java.nio.IOException, SecurityException- Specified by:
setAttributesin interfaceIOService- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
getAttribute
public Object getAttribute(org.uberfire.java.nio.file.Path path, String attribute) throws UnsupportedOperationException, IllegalArgumentException, org.uberfire.java.nio.IOException, SecurityException
- Specified by:
getAttributein interfaceIOService- Throws:
UnsupportedOperationExceptionIllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
buildOptions
protected Set<? extends org.uberfire.java.nio.file.OpenOption> buildOptions(Set<? extends org.uberfire.java.nio.file.OpenOption> options, org.uberfire.java.nio.file.OpenOption... others)
- Specified by:
buildOptionsin classAbstractIOService
-
buildOptions
protected org.uberfire.java.nio.file.CopyOption[] buildOptions(org.uberfire.java.nio.file.CopyOption... options)
-
forceBuildOptions
protected org.uberfire.java.nio.file.CopyOption[] forceBuildOptions(org.uberfire.java.nio.file.CopyOption[] options)
-
isFileScheme
protected boolean isFileScheme(org.uberfire.java.nio.file.Path path)
-
loadDotFile
protected void loadDotFile(org.uberfire.java.nio.file.Path path)
-
newView
protected <V extends org.uberfire.java.nio.base.AbstractBasicFileAttributeView> V newView(org.uberfire.java.nio.base.AttrHolder holder, Class<V> type)
-
internalCreateDirectory
protected org.uberfire.java.nio.file.Path internalCreateDirectory(org.uberfire.java.nio.file.Path dir, boolean skipAlreadyExistsException, org.uberfire.java.nio.file.attribute.FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, org.uberfire.java.nio.file.FileAlreadyExistsException, org.uberfire.java.nio.IOException, SecurityException- Throws:
IllegalArgumentExceptionUnsupportedOperationExceptionorg.uberfire.java.nio.file.FileAlreadyExistsExceptionorg.uberfire.java.nio.IOExceptionSecurityException
-
priority
public int priority()
- Specified by:
priorityin interfaceorg.uberfire.commons.lifecycle.PriorityDisposable
-
-