public class IOServiceNio2WrapperImpl extends AbstractIOService implements IOService
IOService.NewFileSystemListener
DEFAULT_SERVICE_NAME, fileSystems, ioWatchService, isDisposed, newFileSystemListener, UTF_8
EMPTY_OPTIONS
Constructor and Description |
---|
IOServiceNio2WrapperImpl() |
IOServiceNio2WrapperImpl(IOWatchService watchService) |
IOServiceNio2WrapperImpl(String id) |
IOServiceNio2WrapperImpl(String id,
IOWatchService watchService) |
Modifier and Type | Method and Description |
---|---|
protected Set<? extends OpenOption> |
buildOptions(Set<? extends OpenOption> options,
OpenOption... others) |
Path |
copy(Path source,
Path target,
CopyOption... options) |
Path |
createDirectories(Path dir,
FileAttribute<?>... attrs) |
Path |
createDirectory(Path dir,
FileAttribute<?>... attrs) |
void |
delete(Path path,
DeleteOption... options) |
boolean |
deleteIfExists(Path path,
DeleteOption... options) |
Object |
getAttribute(Path path,
String attribute) |
<V extends FileAttributeView> |
getFileAttributeView(Path path,
Class<V> type) |
Path |
move(Path source,
Path target,
CopyOption... options) |
SeekableByteChannel |
newByteChannel(Path path,
Set<? extends OpenOption> options,
FileAttribute<?>... attrs) |
int |
priority() |
Map<String,Object> |
readAttributes(Path path,
String attributes) |
Path |
setAttributes(Path path,
FileAttribute<?>... attrs) |
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
dispose
public IOServiceNio2WrapperImpl()
public IOServiceNio2WrapperImpl(String id)
public IOServiceNio2WrapperImpl(IOWatchService watchService)
public IOServiceNio2WrapperImpl(String id, 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
public int priority()
priority
in interface PriorityDisposable
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.