Class IndexFile

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class IndexFile
    extends java.lang.Object
    implements java.io.Closeable
    • Constructor Detail

      • IndexFile

        public IndexFile​(int indexFileId,
                         java.io.File file)
                  throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • clear

        public void clear()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        public void write​(IndexEntry entry)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public IndexEntry read​(int id)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • getIndexCount

        public int getIndexCount()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getIndexFileId

        public int getIndexFileId()