Package lzma.sdk.lz

Class InWindow

  • Direct Known Subclasses:
    BinTree

    public class InWindow
    extends java.lang.Object
    • Field Detail

      • _bufferBase

        byte[] _bufferBase
      • _stream

        private java.io.InputStream _stream
      • _posLimit

        private int _posLimit
      • _streamEndWasReached

        private boolean _streamEndWasReached
      • _pointerToLastSafePosition

        private int _pointerToLastSafePosition
      • _bufferOffset

        int _bufferOffset
      • _blockSize

        private int _blockSize
      • _pos

        int _pos
      • _keepSizeBefore

        private int _keepSizeBefore
      • _keepSizeAfter

        private int _keepSizeAfter
      • _streamPos

        int _streamPos
    • Constructor Detail

      • InWindow

        public InWindow()
    • Method Detail

      • moveBlock

        void moveBlock()
      • readBlock

        void readBlock()
                throws java.io.IOException
        Throws:
        java.io.IOException
      • free

        void free()
      • create

        void create​(int keepSizeBefore,
                    int keepSizeAfter,
                    int keepSizeReserv)
      • setStream

        public void setStream​(java.io.InputStream stream)
      • releaseStream

        public void releaseStream()
      • init

        void init()
           throws java.io.IOException
        Throws:
        java.io.IOException
      • movePos

        void movePos()
              throws java.io.IOException
        Throws:
        java.io.IOException
      • getIndexByte

        public byte getIndexByte​(int index)
      • getMatchLen

        public int getMatchLen​(int index,
                               int distance,
                               int limit)
      • getNumAvailableBytes

        public int getNumAvailableBytes()
      • reduceOffsets

        void reduceOffsets​(int subValue)