public class IOServiceDotFileImpl extends AbstractIOService implements IOService
IOService.NewFileSystemListener
DEFAULT_SERVICE_NAME, fileSystems, ioWatchService, isDisposed, newFileSystemListener, UTF_8
EMPTY_OPTIONS
Constructor and Description |
---|
IOServiceDotFileImpl() |
IOServiceDotFileImpl(IOWatchService watchService) |
IOServiceDotFileImpl(String serviceId) |
IOServiceDotFileImpl(String serviceId,
IOWatchService watchService) |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public IOServiceDotFileImpl()
public IOServiceDotFileImpl(String serviceId)
public IOServiceDotFileImpl(IOWatchService watchService)
public IOServiceDotFileImpl(String serviceId, IOWatchService watchService)
public void delete(Path path, DeleteOption... options) throws IllegalArgumentException, NoSuchFileException, DirectoryNotEmptyException, IOException, SecurityException
delete
in interface IOService
IllegalArgumentException
NoSuchFileException
DirectoryNotEmptyException
IOException
SecurityException
public boolean deleteIfExists(Path path, DeleteOption... options) throws IllegalArgumentException, DirectoryNotEmptyException, IOException, SecurityException
deleteIfExists
in interface IOService
IllegalArgumentException
DirectoryNotEmptyException
IOException
SecurityException
public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
newByteChannel
in interface IOService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public Path createDirectory(Path dir, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectory
in interface IOService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public Path createDirectories(Path dir, FileAttribute<?>... attrs) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectories
in interface IOService
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
public Path copy(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, IOException, SecurityException
copy
in interface IOService
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
IOException
SecurityException
public Path move(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, AtomicMoveNotSupportedException, IOException, SecurityException
move
in interface IOService
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
AtomicMoveNotSupportedException
IOException
SecurityException
public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type) throws IllegalArgumentException
getFileAttributeView
in interface IOService
IllegalArgumentException
public Map<String,Object> readAttributes(Path path, String attributes) throws UnsupportedOperationException, NoSuchFileException, IllegalArgumentException, IOException, SecurityException
readAttributes
in interface IOService
UnsupportedOperationException
NoSuchFileException
IllegalArgumentException
IOException
SecurityException
public Path setAttributes(Path path, FileAttribute<?>... attrs) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, IOException, SecurityException
setAttributes
in interface IOService
UnsupportedOperationException
IllegalArgumentException
ClassCastException
IOException
SecurityException
public Object getAttribute(Path path, String attribute) throws UnsupportedOperationException, IllegalArgumentException, IOException, SecurityException
getAttribute
in interface IOService
UnsupportedOperationException
IllegalArgumentException
IOException
SecurityException
protected Set<? extends OpenOption> buildOptions(Set<? extends OpenOption> options, OpenOption... others)
buildOptions
in class AbstractIOService
protected CopyOption[] buildOptions(CopyOption... options)
protected CopyOption[] forceBuildOptions(CopyOption[] options)
protected boolean isFileScheme(Path path)
protected void loadDotFile(Path path)
protected <V extends AbstractBasicFileAttributeView> V newView(AttrHolder holder, Class<V> type)
protected Path internalCreateDirectory(Path dir, boolean skipAlreadyExistsException, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
public int priority()
priority
in interface org.uberfire.commons.lifecycle.PriorityDisposable
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.