Class BaseCharFilter

    • Constructor Detail

      • BaseCharFilter

        public BaseCharFilter​(Reader in)
    • Method Detail

      • correct

        protected int correct​(int currentOff)
        Retrieve the corrected offset.
        Specified by:
        correct in class CharFilter
      • getLastCumulativeDiff

        protected int getLastCumulativeDiff()
      • addOffCorrectMap

        protected void addOffCorrectMap​(int off,
                                        int cumulativeDiff)
        Adds an offset correction mapping at the given output stream offset.

        Assumption: the offset given with each successive call to this method will not be smaller than the offset given at the previous invocation.

        off - The output stream offset at which to apply the correction
        cumulativeDiff - The input offset is given by adding this to the output offset