|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.crawler.writer.MirrorWriterProcessor.PathSegment
abstract class MirrorWriterProcessor.PathSegment
This class represents one segment (component) of a URI path. A segment between '/' characters is a directory segment. The segment after the last '/' is the end segment.
| Nested Class Summary | |
|---|---|
(package private) class |
MirrorWriterProcessor.PathSegment.CaseInsensitiveFilenameFilter
This class implements a FilenameFilter that matches by name, ignoring case. |
| Field Summary | |
|---|---|
protected CrawlURI |
curi
The URI, for logging and error reporting. |
protected static int |
EXISTS_CASE_INSENSITIVE_MATCH
existsMaybeCaseSensitive return code for a file that exists, using a case-insensitive comparison. |
protected static int |
EXISTS_EXACT_MATCH
existsMaybeCaseSensitive return code for a file that exists. |
protected static int |
EXISTS_NOT
existsMaybeCaseSensitive return code for a file that does not exist. |
protected MirrorWriterProcessor.LumpyString |
mainPart
The main part of this segment. |
protected int |
maxSegLen
The maximum number of characters allowed in one file system path segment. |
| Constructor Summary | |
|---|---|
MirrorWriterProcessor.PathSegment(int maxSegLen,
boolean caseSensitive,
CrawlURI curi)
Creates a new PathSegment. |
|
| Method Summary | |
|---|---|
(package private) abstract void |
addToPath(MirrorWriterProcessor.URIToFileReturn currentPath)
Adds this segment to a file path. |
protected int |
existsMaybeCaseSensitive(java.io.File fsf,
java.lang.String segStr,
java.io.File check)
Checks if a file (including directories) exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int EXISTS_NOT
protected static final int EXISTS_EXACT_MATCH
protected static final int EXISTS_CASE_INSENSITIVE_MATCH
protected CrawlURI curi
protected MirrorWriterProcessor.LumpyString mainPart
protected int maxSegLen
| Constructor Detail |
|---|
MirrorWriterProcessor.PathSegment(int maxSegLen,
boolean caseSensitive,
CrawlURI curi)
maxSegLen - the maximum number of characters
allowed in one path segmentcaseSensitive - if true, the file system is assumed to be
case-sensitive; otherwise the file system is assumed to be
case-insensitivecuri - the URI
java.lang.IllegalArgumentException - if
maxSegLen is too small| Method Detail |
|---|
abstract void addToPath(MirrorWriterProcessor.URIToFileReturn currentPath)
throws java.io.IOException
currentPath - the current path, to which this segment is added
java.io.IOException - if a needed directory could not be created
java.io.IOException - if a needed directory is not writeable
protected int existsMaybeCaseSensitive(java.io.File fsf,
java.lang.String segStr,
java.io.File check)
fsf - the directory containing the file to be checkedsegStr - the simple file or directory namecheck - the file or directory for which to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||