Class AbstractStorage

    • Constructor Detail

      • AbstractStorage

        public AbstractStorage()
    • Method Detail

      • createNewRecord

        public abstract int createNewRecord​(int requiredLength)
                                     throws IOException
        Throws:
        IOException
      • deleteRecord

        public abstract void deleteRecord​(int record)
      • readBytes

        public abstract byte[] readBytes​(int record)
      • checkSanity

        public abstract void checkSanity​(int record)
      • flushSome

        public abstract boolean flushSome()
      • getVersion

        public abstract int getVersion()
      • setVersion

        public abstract void setVersion​(int version)
      • appendBytes

        protected abstract int appendBytes​(int record,
                                           byte[] bytes)
      • writeBytes

        public abstract void writeBytes​(int record,
                                        byte[] bytes)
      • ensureCapacity

        public abstract int ensureCapacity​(int attAddress,
                                           int capacity)