Kie Commons I/O 6.0.0.CR5

org.kie.commons.io.impl
Class IOServiceNio2WrapperImpl

java.lang.Object
  extended by org.kie.commons.io.impl.AbstractIOService
      extended by org.kie.commons.io.impl.IOServiceNio2WrapperImpl
All Implemented Interfaces:
IOService

public class IOServiceNio2WrapperImpl
extends AbstractIOService
implements IOService


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.kie.commons.io.IOService
IOService.NewFileSystemListener
 
Field Summary
 
Fields inherited from class org.kie.commons.io.impl.AbstractIOService
DEFAULT_FS_TYPE, fileSystems, ioWatchService, isDisposed, lockService, newFileSystemListener, UTF_8
 
Fields inherited from interface org.kie.commons.io.IOService
EMPTY_OPTIONS
 
Constructor Summary
IOServiceNio2WrapperImpl()
           
IOServiceNio2WrapperImpl(IOWatchService watchService)
           
IOServiceNio2WrapperImpl(org.kie.commons.lock.LockService lockService, IOWatchService watchService)
           
 
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)
           
<V extends org.kie.commons.java.nio.file.attribute.FileAttributeView>
V
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
 

Constructor Detail

IOServiceNio2WrapperImpl

public IOServiceNio2WrapperImpl()

IOServiceNio2WrapperImpl

public IOServiceNio2WrapperImpl(IOWatchService watchService)

IOServiceNio2WrapperImpl

public IOServiceNio2WrapperImpl(org.kie.commons.lock.LockService lockService,
                                IOWatchService watchService)
Method Detail

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

Kie Commons I/O 6.0.0.CR5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.