public class IOServiceNio2WrapperImpl extends AbstractIOService implements IOService
IOService.NewFileSystemListenerDEFAULT_SERVICE_NAME, fileSystems, ioWatchService, isDisposed, newFileSystemListener, UTF_8EMPTY_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, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvert, 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, writedisposepublic 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 IOServiceIllegalArgumentExceptionNoSuchFileExceptionDirectoryNotEmptyExceptionIOExceptionSecurityExceptionpublic boolean deleteIfExists(Path path, DeleteOption... options) throws IllegalArgumentException, DirectoryNotEmptyException, IOException, SecurityException
deleteIfExists in interface IOServiceIllegalArgumentExceptionDirectoryNotEmptyExceptionIOExceptionSecurityExceptionpublic SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
newByteChannel in interface IOServiceIllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionIOExceptionSecurityExceptionpublic Path createDirectory(Path dir, FileAttribute<?>... attrs) throws IllegalArgumentException, UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectory in interface IOServiceIllegalArgumentExceptionUnsupportedOperationExceptionFileAlreadyExistsExceptionIOExceptionSecurityExceptionpublic Path createDirectories(Path dir, FileAttribute<?>... attrs) throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException
createDirectories in interface IOServiceUnsupportedOperationExceptionFileAlreadyExistsExceptionIOExceptionSecurityExceptionpublic Path copy(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, IOException, SecurityException
copy in interface IOServiceUnsupportedOperationExceptionFileAlreadyExistsExceptionDirectoryNotEmptyExceptionIOExceptionSecurityExceptionpublic Path move(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, AtomicMoveNotSupportedException, IOException, SecurityException
move in interface IOServiceUnsupportedOperationExceptionFileAlreadyExistsExceptionDirectoryNotEmptyExceptionAtomicMoveNotSupportedExceptionIOExceptionSecurityExceptionpublic <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type) throws IllegalArgumentException
getFileAttributeView in interface IOServiceIllegalArgumentExceptionpublic Map<String,Object> readAttributes(Path path, String attributes) throws UnsupportedOperationException, NoSuchFileException, IllegalArgumentException, IOException, SecurityException
readAttributes in interface IOServiceUnsupportedOperationExceptionNoSuchFileExceptionIllegalArgumentExceptionIOExceptionSecurityExceptionpublic Path setAttributes(Path path, FileAttribute<?>... attrs) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, IOException, SecurityException
setAttributes in interface IOServiceUnsupportedOperationExceptionIllegalArgumentExceptionClassCastExceptionIOExceptionSecurityExceptionpublic Object getAttribute(Path path, String attribute) throws UnsupportedOperationException, IllegalArgumentException, IOException, SecurityException
getAttribute in interface IOServiceUnsupportedOperationExceptionIllegalArgumentExceptionIOExceptionSecurityExceptionprotected Set<? extends OpenOption> buildOptions(Set<? extends OpenOption> options, OpenOption... others)
buildOptions in class AbstractIOServicepublic int priority()
priority in interface PriorityDisposableCopyright © 2012–2019 JBoss by Red Hat. All rights reserved.