Package dk.netarkivet.common.utils.arc
Class ARCKey
- java.lang.Object
-
- dk.netarkivet.common.utils.arc.ARCKey
-
public class ARCKey extends Object
Represents a location key in the ARC format.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getFile()
Getter for arcFile.long
getOffset()
Getter for offset.String
toString()
-
-
-
Constructor Detail
-
ARCKey
public ARCKey(String archiveFileName, long offset)
Constructor for ARCKey. Note that if the filename ends in .dat (it's an Alexa-style DAT file), we assume that the file we actually want is a .arc.gz file as produced by Alexa tools. That is because the Alexa cdx generator does not put the correct filename in there.- Parameters:
archiveFileName
- The name of the archive found in the cdx fileoffset
- The offset in the arc file of this entry.
-
-
Method Detail
-
getOffset
public long getOffset()
Getter for offset.- Returns:
- The offset into the ARC file used for this key
-
getFile
public File getFile()
Getter for arcFile.- Returns:
- The ARC file that this entry can be found in
-
-