org.kie.commons.io.impl
Class IOServiceNio2WrapperImpl
java.lang.Object
org.kie.commons.io.impl.AbstractIOService
org.kie.commons.io.impl.IOServiceNio2WrapperImpl
- All Implemented Interfaces:
- IOService
public class IOServiceNio2WrapperImpl
- extends AbstractIOService
- implements IOService
|
Method Summary |
protected Set<? extends OpenOption> |
buildOptions(Set<? extends OpenOption> options,
OpenOption... others)
|
Path |
copy(Path source,
Path target,
CopyOption... options)
|
Path |
createDirectories(Path dir,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
|
Path |
createDirectory(Path dir,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
|
void |
delete(Path path,
DeleteOption... options)
|
boolean |
deleteIfExists(Path path,
DeleteOption... options)
|
Object |
getAttribute(Path path,
String attribute)
|
|
getFileAttributeView(Path path,
Class<V> type)
|
Path |
move(Path source,
Path target,
CopyOption... options)
|
org.kie.commons.java.nio.channels.SeekableByteChannel |
newByteChannel(Path path,
Set<? extends OpenOption> options,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
|
Map<String,Object> |
readAttributes(Path path,
String attributes)
|
Path |
setAttributes(Path path,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
|
| Methods inherited from class org.kie.commons.io.impl.AbstractIOService |
convert, copy, copy, createDirectories, createDirectory, createFile, createTempDirectory, createTempDirectory, createTempFile, createTempFile, dispose, endBatch, exists, get, get, getFileSystem, getFileSystems, getFileSystems, getLastModifiedTime, isSameFile, newBufferedReader, newBufferedWriter, newByteChannel, newDirectoryStream, newDirectoryStream, newFileSystem, newFileSystem, newInputStream, newOutputStream, notExists, onNewFileSystem, readAllBytes, readAllLines, readAllLines, readAllString, readAllString, readAttributes, setAttribute, setAttributes, size, 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.kie.commons.io.IOService |
convert, copy, copy, createDirectories, createDirectory, createFile, createTempDirectory, createTempDirectory, createTempFile, createTempFile, dispose, endBatch, exists, get, get, getFileSystem, getFileSystems, getFileSystems, getLastModifiedTime, isSameFile, newBufferedReader, newBufferedWriter, newByteChannel, newDirectoryStream, newDirectoryStream, newFileSystem, newFileSystem, newInputStream, newOutputStream, notExists, onNewFileSystem, readAllBytes, readAllLines, readAllLines, readAllString, readAllString, readAttributes, setAttribute, setAttributes, size, startBatch, write, write, write, write, write, write, write, write, write, write |
IOServiceNio2WrapperImpl
public IOServiceNio2WrapperImpl()
IOServiceNio2WrapperImpl
public IOServiceNio2WrapperImpl(IOWatchService watchService)
IOServiceNio2WrapperImpl
public IOServiceNio2WrapperImpl(org.kie.commons.lock.LockService lockService,
IOWatchService watchService)
delete
public void delete(Path path,
DeleteOption... options)
throws IllegalArgumentException,
NoSuchFileException,
DirectoryNotEmptyException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
delete in interface IOService
- Throws:
IllegalArgumentException
NoSuchFileException
DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
deleteIfExists
public boolean deleteIfExists(Path path,
DeleteOption... options)
throws IllegalArgumentException,
DirectoryNotEmptyException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
deleteIfExists in interface IOService
- Throws:
IllegalArgumentException
DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
newByteChannel
public org.kie.commons.java.nio.channels.SeekableByteChannel newByteChannel(Path path,
Set<? extends OpenOption> options,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
throws IllegalArgumentException,
UnsupportedOperationException,
FileAlreadyExistsException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
newByteChannel in interface IOService
- Throws:
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
createDirectory
public Path createDirectory(Path dir,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
throws IllegalArgumentException,
UnsupportedOperationException,
FileAlreadyExistsException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
createDirectory in interface IOService
- Throws:
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
createDirectories
public Path createDirectories(Path dir,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
throws UnsupportedOperationException,
FileAlreadyExistsException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
createDirectories in interface IOService
- Throws:
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
copy
public Path copy(Path source,
Path target,
CopyOption... options)
throws UnsupportedOperationException,
FileAlreadyExistsException,
DirectoryNotEmptyException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
copy in interface IOService
- Throws:
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
move
public Path move(Path source,
Path target,
CopyOption... options)
throws UnsupportedOperationException,
FileAlreadyExistsException,
DirectoryNotEmptyException,
AtomicMoveNotSupportedException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
move in interface IOService
- Throws:
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
AtomicMoveNotSupportedException
org.kie.commons.java.nio.IOException
SecurityException
getFileAttributeView
public <V extends org.kie.commons.java.nio.file.attribute.FileAttributeView> V getFileAttributeView(Path path,
Class<V> type)
throws IllegalArgumentException
- Specified by:
getFileAttributeView in interface IOService
- Throws:
IllegalArgumentException
readAttributes
public Map<String,Object> readAttributes(Path path,
String attributes)
throws UnsupportedOperationException,
NoSuchFileException,
IllegalArgumentException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
readAttributes in interface IOService
- Throws:
UnsupportedOperationException
NoSuchFileException
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
setAttributes
public Path setAttributes(Path path,
org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
throws UnsupportedOperationException,
IllegalArgumentException,
ClassCastException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
setAttributes in interface IOService
- Throws:
UnsupportedOperationException
IllegalArgumentException
ClassCastException
org.kie.commons.java.nio.IOException
SecurityException
getAttribute
public Object getAttribute(Path path,
String attribute)
throws UnsupportedOperationException,
IllegalArgumentException,
org.kie.commons.java.nio.IOException,
SecurityException
- Specified by:
getAttribute in interface IOService
- Throws:
UnsupportedOperationException
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
buildOptions
protected Set<? extends OpenOption> buildOptions(Set<? extends OpenOption> options,
OpenOption... others)
- Specified by:
buildOptions in class AbstractIOService
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.