org.kie.commons.io.impl
public class IOServiceNio2WrapperImpl extends AbstractIOService implements IOService
IOService.NewFileSystemListener
DEFAULT_FS_TYPE, fileSystems, newFileSystemListener, UTF_8
EMPTY_OPTIONS
Constructor and Description |
---|
IOServiceNio2WrapperImpl() |
convert, copy, copy, createDirectories, createDirectory, createFile, createTempDirectory, createTempDirectory, createTempFile, createTempFile, dispose, 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, setAttributes, size, 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, dispose, 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, setAttributes, size, write, write, write, write, write, write, write, write, write, write
public void delete(Path path) throws IllegalArgumentException, NoSuchFileException, DirectoryNotEmptyException, org.kie.commons.java.nio.IOException, SecurityException
delete
in interface IOService
IllegalArgumentException
NoSuchFileException
DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
public boolean deleteIfExists(Path path) throws IllegalArgumentException, DirectoryNotEmptyException, org.kie.commons.java.nio.IOException, SecurityException
deleteIfExists
in interface IOService
IllegalArgumentException
DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
public void startBatch()
startBatch
in interface IOService
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
newByteChannel
in interface IOService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
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
createDirectory
in interface IOService
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
public Path createDirectories(Path dir, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs) throws UnsupportedOperationException, FileAlreadyExistsException, org.kie.commons.java.nio.IOException, SecurityException
createDirectories
in interface IOService
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException
public Path copy(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, org.kie.commons.java.nio.IOException, SecurityException
copy
in interface IOService
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
org.kie.commons.java.nio.IOException
SecurityException
public Path move(Path source, Path target, CopyOption... options) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, AtomicMoveNotSupportedException, org.kie.commons.java.nio.IOException, SecurityException
move
in interface IOService
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
AtomicMoveNotSupportedException
org.kie.commons.java.nio.IOException
SecurityException
public <V extends org.kie.commons.java.nio.file.attribute.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, org.kie.commons.java.nio.IOException, SecurityException
readAttributes
in interface IOService
UnsupportedOperationException
NoSuchFileException
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
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
setAttributes
in interface IOService
UnsupportedOperationException
IllegalArgumentException
ClassCastException
org.kie.commons.java.nio.IOException
SecurityException
public Path setAttribute(Path path, String attribute, Object value) throws UnsupportedOperationException, IllegalArgumentException, ClassCastException, org.kie.commons.java.nio.IOException, SecurityException
setAttribute
in interface IOService
UnsupportedOperationException
IllegalArgumentException
ClassCastException
org.kie.commons.java.nio.IOException
SecurityException
public Object getAttribute(Path path, String attribute) throws UnsupportedOperationException, IllegalArgumentException, org.kie.commons.java.nio.IOException, SecurityException
getAttribute
in interface IOService
UnsupportedOperationException
IllegalArgumentException
org.kie.commons.java.nio.IOException
SecurityException
protected Set<? extends OpenOption> buildOptions(Set<? extends OpenOption> options, OpenOption... others)
buildOptions
in class AbstractIOService
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.