Kie Commons I/O 6.0.0.CR5

org.kie.commons.io.impl
Class IOServiceDotFileImpl

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

public class IOServiceDotFileImpl
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
IOServiceDotFileImpl()
           
IOServiceDotFileImpl(IOWatchService watchService)
           
IOServiceDotFileImpl(org.kie.commons.lock.LockService lockService, IOWatchService watchService)
           
 
Method Summary
protected  CopyOption[] buildOptions(CopyOption... options)
           
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)
           
protected  CopyOption[] forceBuildOptions(CopyOption[] options)
           
 Object getAttribute(Path path, String attribute)
           
<V extends org.kie.commons.java.nio.file.attribute.FileAttributeView>
V
getFileAttributeView(Path path, Class<V> type)
           
protected  Path internalCreateDirectory(Path dir, boolean skipAlreadyExistsException, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
           
protected  boolean isFileScheme(Path path)
           
protected  void loadDotFile(Path path)
           
 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)
           
protected
<V extends org.kie.commons.java.nio.base.AbstractBasicFileAttributeView>
V
newView(org.kie.commons.java.nio.base.AttrHolder holder, Class<V> type)
           
 Map<String,Object> readAttributes(Path path, String attributes)
           
 Path setAttributes(Path path, org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
           
protected  String[] split(String attribute)
           
 
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

IOServiceDotFileImpl

public IOServiceDotFileImpl()

IOServiceDotFileImpl

public IOServiceDotFileImpl(IOWatchService watchService)

IOServiceDotFileImpl

public IOServiceDotFileImpl(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

buildOptions

protected CopyOption[] buildOptions(CopyOption... options)

forceBuildOptions

protected CopyOption[] forceBuildOptions(CopyOption[] options)

isFileScheme

protected boolean isFileScheme(Path path)

loadDotFile

protected void loadDotFile(Path path)

newView

protected <V extends org.kie.commons.java.nio.base.AbstractBasicFileAttributeView> V newView(org.kie.commons.java.nio.base.AttrHolder holder,
                                                                                             Class<V> type)

internalCreateDirectory

protected Path internalCreateDirectory(Path dir,
                                       boolean skipAlreadyExistsException,
                                       org.kie.commons.java.nio.file.attribute.FileAttribute<?>... attrs)
                                throws IllegalArgumentException,
                                       UnsupportedOperationException,
                                       FileAlreadyExistsException,
                                       org.kie.commons.java.nio.IOException,
                                       SecurityException
Throws:
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
org.kie.commons.java.nio.IOException
SecurityException

split

protected String[] split(String attribute)

Kie Commons I/O 6.0.0.CR5

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