Class ReadOnlyPath
java.lang.Object
com.norconex.crawler.fs.fetch.impl.ReadOnlyPath
Shared absolute-path behavior for remote, read-only file systems.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReadOnlyPath(FileSystem fileSystem, List<String> segments, String displayName) -
Method Summary
Modifier and TypeMethodDescriptionintprotected abstract PathcreatePath(List<String> segments) booleanbooleanbooleangetName(int index) intgetRoot()inthashCode()booleaniterator()protected final Stringprotected final FileSystemregister(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) relativize(Path other) resolveSibling(String other) resolveSibling(Path other) segments()booleanstartsWith(String other) booleanstartsWith(Path other) subpath(int beginIndex, int endIndex) toFile()toRealPath(LinkOption... options) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ReadOnlyPath
-
-
Method Details
-
parse
-
rawFileSystem
-
segments
-
normalizedPath
-
createPath
-
getFileSystem
- Specified by:
getFileSystemin interfacePath
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolutein interfacePath
-
getRoot
-
getFileName
- Specified by:
getFileNamein interfacePath
-
getParent
-
getNameCount
public int getNameCount()- Specified by:
getNameCountin interfacePath
-
getName
-
subpath
-
startsWith
- Specified by:
startsWithin interfacePath
-
startsWith
- Specified by:
startsWithin interfacePath
-
endsWith
-
endsWith
-
normalize
-
resolve
-
resolve
-
resolveSibling
- Specified by:
resolveSiblingin interfacePath
-
resolveSibling
- Specified by:
resolveSiblingin interfacePath
-
relativize
- Specified by:
relativizein interfacePath
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfacePath
-
toRealPath
- Specified by:
toRealPathin interfacePath
-
toFile
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) -
iterator
-
compareTo
- Specified by:
compareToin interfaceComparable<Path>- Specified by:
compareToin interfacePath
-
hashCode
public int hashCode() -
equals
-
toString
-