Class ARCKey


  • public class ARCKey
    extends Object
    Represents a location key in the ARC format.
    • 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 file
        offset - 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
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        a textual representation of filename and offset