Package org.uberfire.java.nio.base
Class GeneralPathImpl
- java.lang.Object
-
- org.uberfire.java.nio.base.AbstractPath<FileSystem>
-
- org.uberfire.java.nio.base.GeneralPathImpl
-
- All Implemented Interfaces:
Comparable<Path>,Iterable<Path>,AttrHolder,SegmentedPath,Path,Watchable
public class GeneralPathImpl extends AbstractPath<FileSystem> implements SegmentedPath
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.uberfire.java.nio.base.AbstractPath
AbstractPath.RootInfo
-
-
Field Summary
-
Fields inherited from class org.uberfire.java.nio.base.AbstractPath
attrsStorage, DEFAULT_WINDOWS_DRIVER, file, fs, host, isAbsolute, isNormalized, isRealPath, isRoot, offsets, path, toStringFormat, usesWindowsFormat, WINDOWS_DRIVER
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GeneralPathImplcreate(FileSystem fs, String path, boolean isRealPath)static GeneralPathImplcreate(FileSystem fs, String path, boolean isRealPath, boolean isNormalized)static GeneralPathImplcreateRoot(FileSystem fs, String path, boolean isRealPath)protected StringdefaultDirectory()StringgetSegmentId()static GeneralPathImplnewFromFile(FileSystem fs, File file)protected PathnewPath(FileSystem fs, String substring, String host, boolean isRealPath, boolean isNormalized)protected PathnewRoot(FileSystem fs, String substring, String host, boolean realPath)protected AbstractPath.RootInfosetupRoot(FileSystem fs, String path, String host, boolean isRoot)FiletoFile()-
Methods inherited from class org.uberfire.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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
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)
-
setupRoot
protected AbstractPath.RootInfo setupRoot(FileSystem fs, String path, String host, boolean isRoot)
- Specified by:
setupRootin classAbstractPath<FileSystem>
-
defaultDirectory
protected String defaultDirectory()
- Specified by:
defaultDirectoryin classAbstractPath<FileSystem>
-
newRoot
protected Path newRoot(FileSystem fs, String substring, String host, boolean realPath)
- Specified by:
newRootin classAbstractPath<FileSystem>
-
newPath
protected Path newPath(FileSystem fs, String substring, String host, boolean isRealPath, boolean isNormalized)
- Specified by:
newPathin classAbstractPath<FileSystem>
-
toFile
public File toFile() throws UnsupportedOperationException
- Specified by:
toFilein interfacePath- Throws:
UnsupportedOperationException
-
getSegmentId
public String getSegmentId()
- Specified by:
getSegmentIdin interfaceSegmentedPath
-
-