org.kie.commons.java.nio.base
Class GeneralPathImpl
java.lang.Object
org.kie.commons.java.nio.base.AbstractPath<FileSystem>
org.kie.commons.java.nio.base.GeneralPathImpl
- All Implemented Interfaces:
- Comparable<Path>, Iterable<Path>, AttrHolder, SegmentedPath, Path, Watchable
public class GeneralPathImpl
- extends AbstractPath<FileSystem>
- implements SegmentedPath
| Fields inherited from class org.kie.commons.java.nio.base.AbstractPath |
attrsStorage, DEFAULT_WINDOWS_DRIVER, file, fs, host, isAbsolute, isNormalized, isRealPath, isRoot, offsets, path, toStringFormat, usesWindowsFormat, WINDOWS_DRIVER |
|
Method Summary |
static GeneralPathImpl |
create(FileSystem fs,
String path,
boolean isRealPath)
|
static GeneralPathImpl |
create(FileSystem fs,
String path,
boolean isRealPath,
boolean isNormalized)
|
static GeneralPathImpl |
createRoot(FileSystem fs,
String path,
boolean isRealPath)
|
protected String |
defaultDirectory()
|
String |
getSegmentId()
|
static GeneralPathImpl |
newFromFile(FileSystem fs,
File file)
|
protected Path |
newPath(FileSystem fs,
String substring,
String host,
boolean isRealPath,
boolean isNormalized)
|
protected Path |
newRoot(FileSystem fs,
String substring,
String host,
boolean realPath)
|
protected AbstractPath.RootInfo |
setupRoot(FileSystem fs,
String path,
String host,
boolean isRoot)
|
File |
toFile()
|
| Methods inherited from class org.kie.commons.java.nio.base.AbstractPath |
addAttrView, clearCache, compareTo, endsWith, endsWith, equals, getAttrStorage, getAttrView, getAttrView, getFileName, getFileSystem, getHost, getName, getNameCount, getParent, getRoot, hashCode, isAbsolute, isRealPath, iterator, normalize, register, register, relativize, resolve, resolve, resolveSibling, resolveSibling, startsWith, startsWith, subpath, toAbsolutePath, toRealPath, toString, toString, toUri |
setupRoot
protected AbstractPath.RootInfo setupRoot(FileSystem fs,
String path,
String host,
boolean isRoot)
- Specified by:
setupRoot in class AbstractPath<FileSystem>
defaultDirectory
protected String defaultDirectory()
- Specified by:
defaultDirectory in class AbstractPath<FileSystem>
newFromFile
public static GeneralPathImpl newFromFile(FileSystem fs,
File file)
create
public static GeneralPathImpl create(FileSystem fs,
String path,
boolean isRealPath)
createRoot
public static GeneralPathImpl createRoot(FileSystem fs,
String path,
boolean isRealPath)
create
public static GeneralPathImpl create(FileSystem fs,
String path,
boolean isRealPath,
boolean isNormalized)
newRoot
protected Path newRoot(FileSystem fs,
String substring,
String host,
boolean realPath)
- Specified by:
newRoot in class AbstractPath<FileSystem>
newPath
protected Path newPath(FileSystem fs,
String substring,
String host,
boolean isRealPath,
boolean isNormalized)
- Specified by:
newPath in class AbstractPath<FileSystem>
toFile
public File toFile()
throws UnsupportedOperationException
- Specified by:
toFile in interface Path
- Throws:
UnsupportedOperationException
getSegmentId
public String getSegmentId()
- Specified by:
getSegmentId in interface SegmentedPath
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.