org.kie.commons.io.impl
Class IOServiceDotFileImpl
java.lang.Object
org.kie.commons.io.impl.AbstractIOService
org.kie.commons.io.impl.IOServiceDotFileImpl
- All Implemented Interfaces:
- IOService
public class IOServiceDotFileImpl
- extends AbstractIOService
- implements IOService
|
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,
FileAttribute<?>... attrs)
|
Path |
createDirectory(Path dir,
FileAttribute<?>... attrs)
|
void |
delete(Path path)
|
boolean |
deleteIfExists(Path path)
|
void |
endBatch()
|
protected CopyOption[] |
forceBuildOptions(CopyOption[] options)
|
Object |
getAttribute(Path path,
String attribute)
|
|
getFileAttributeView(Path path,
Class<V> type)
|
protected Path |
internalCreateDirectory(Path dir,
boolean skipAlreadyExistsException,
FileAttribute<?>... attrs)
|
protected boolean |
isFileScheme(Path path)
|
protected void |
loadDotFile(Path path)
|
Path |
move(Path source,
Path target,
CopyOption... options)
|
SeekableByteChannel |
newByteChannel(Path path,
Set<? extends OpenOption> options,
FileAttribute<?>... attrs)
|
protected
|
newView(AttrHolder holder,
Class<V> type)
|
Map<String,Object> |
readAttributes(Path path,
String attributes)
|
Path |
setAttribute(Path path,
String attribute,
Object value)
|
Path |
setAttributes(Path path,
FileAttribute<?>... attrs)
|
protected String[] |
split(String attribute)
|
void |
startBatch()
|
| Methods inherited from class org.kie.commons.io.impl.AbstractIOService |
convert, copy, copy, createDirectories, createDirectory, createFile, createTempDirectory, createTempDirectory, createTempFile, createTempFile, 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 |
| 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, 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 |
IOServiceDotFileImpl
public IOServiceDotFileImpl()
delete
public void delete(Path path)
throws IllegalArgumentException,
NoSuchFileException,
DirectoryNotEmptyException,
IOException,
SecurityException
- Specified by:
delete in interface IOService
- Throws:
IllegalArgumentException
NoSuchFileException
DirectoryNotEmptyException
IOException
SecurityException
deleteIfExists
public boolean deleteIfExists(Path path)
throws IllegalArgumentException,
DirectoryNotEmptyException,
IOException,
SecurityException
- Specified by:
deleteIfExists in interface IOService
- Throws:
IllegalArgumentException
DirectoryNotEmptyException
IOException
SecurityException
startBatch
public void startBatch()
- Specified by:
startBatch in interface IOService
endBatch
public void endBatch()
- Specified by:
endBatch in interface IOService
newByteChannel
public SeekableByteChannel newByteChannel(Path path,
Set<? extends OpenOption> options,
FileAttribute<?>... attrs)
throws IllegalArgumentException,
UnsupportedOperationException,
FileAlreadyExistsException,
IOException,
SecurityException
- Specified by:
newByteChannel in interface IOService
- Throws:
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
createDirectory
public Path createDirectory(Path dir,
FileAttribute<?>... attrs)
throws IllegalArgumentException,
UnsupportedOperationException,
FileAlreadyExistsException,
IOException,
SecurityException
- Specified by:
createDirectory in interface IOService
- Throws:
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
createDirectories
public Path createDirectories(Path dir,
FileAttribute<?>... attrs)
throws UnsupportedOperationException,
FileAlreadyExistsException,
IOException,
SecurityException
- Specified by:
createDirectories in interface IOService
- Throws:
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
copy
public Path copy(Path source,
Path target,
CopyOption... options)
throws UnsupportedOperationException,
FileAlreadyExistsException,
DirectoryNotEmptyException,
IOException,
SecurityException
- Specified by:
copy in interface IOService
- Throws:
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
IOException
SecurityException
move
public Path move(Path source,
Path target,
CopyOption... options)
throws UnsupportedOperationException,
FileAlreadyExistsException,
DirectoryNotEmptyException,
AtomicMoveNotSupportedException,
IOException,
SecurityException
- Specified by:
move in interface IOService
- Throws:
UnsupportedOperationException
FileAlreadyExistsException
DirectoryNotEmptyException
AtomicMoveNotSupportedException
IOException
SecurityException
getFileAttributeView
public <V extends 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,
IOException,
SecurityException
- Specified by:
readAttributes in interface IOService
- Throws:
UnsupportedOperationException
NoSuchFileException
IllegalArgumentException
IOException
SecurityException
setAttribute
public Path setAttribute(Path path,
String attribute,
Object value)
throws UnsupportedOperationException,
IllegalArgumentException,
ClassCastException,
IOException,
SecurityException
- Specified by:
setAttribute in interface IOService
- Throws:
UnsupportedOperationException
IllegalArgumentException
ClassCastException
IOException
SecurityException
setAttributes
public Path setAttributes(Path path,
FileAttribute<?>... attrs)
throws UnsupportedOperationException,
IllegalArgumentException,
ClassCastException,
IOException,
SecurityException
- Specified by:
setAttributes in interface IOService
- Throws:
UnsupportedOperationException
IllegalArgumentException
ClassCastException
IOException
SecurityException
getAttribute
public Object getAttribute(Path path,
String attribute)
throws UnsupportedOperationException,
IllegalArgumentException,
IOException,
SecurityException
- Specified by:
getAttribute in interface IOService
- Throws:
UnsupportedOperationException
IllegalArgumentException
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 AbstractBasicFileAttributeView> V newView(AttrHolder holder,
Class<V> type)
internalCreateDirectory
protected Path internalCreateDirectory(Path dir,
boolean skipAlreadyExistsException,
FileAttribute<?>... attrs)
throws IllegalArgumentException,
UnsupportedOperationException,
FileAlreadyExistsException,
IOException,
SecurityException
- Throws:
IllegalArgumentException
UnsupportedOperationException
FileAlreadyExistsException
IOException
SecurityException
split
protected String[] split(String attribute)
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.