|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.utils.FileUtils.FilenameParser
public static class FileUtils.FilenameParser
A class for parsing an ARC filename as generated by our runs of Heritrix and retrieving components like harvestID and jobID. See HeritrixLauncher.getCrawlID for where the format gets defined.
Constructor Summary | |
---|---|
FileUtils.FilenameParser(java.io.File file)
Parses the name of the given file. |
Method Summary | |
---|---|
java.lang.String |
getFilename()
Get the filename. |
java.lang.String |
getHarvestID()
Get the harvestID. |
java.lang.String |
getJobID()
Get the job ID. |
java.lang.String |
getSerialNo()
Get the serial number. |
java.lang.String |
getTimeStamp()
Get the timestamp. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileUtils.FilenameParser(java.io.File file) throws UnknownID
file
- An ARC/CDX file named following the NetarchiveSuite
convention.
UnknownID
- if the file was NOT named following
NetarchiveSuite convention; or any other exception occurredMethod Detail |
---|
public java.lang.String getHarvestID()
public java.lang.String getJobID()
public java.lang.String getTimeStamp()
public java.lang.String getSerialNo()
public java.lang.String getFilename()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |