Class UTF8Util.SkipCount

  • Enclosing class:
    UTF8Util

    private static final class UTF8Util.SkipCount
    extends java.lang.Object
    Helper class to hold skip counts; one for chars and one for bytes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long byteCount
      Number of bytes skipped.
      private long charCount
      Number of characters skipped.
    • Constructor Summary

      Constructors 
      Constructor Description
      SkipCount​(long charCount, long byteCount)
      Creates a holder for the specified skip counts.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) long bytesSkipped()  
      (package private) long charsSkipped()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • byteCount

        private final long byteCount
        Number of bytes skipped.
      • charCount

        private final long charCount
        Number of characters skipped.
    • Constructor Detail

      • SkipCount

        SkipCount​(long charCount,
                  long byteCount)
        Creates a holder for the specified skip counts.
        Parameters:
        byteCount - number of bytes
        charCount - number of characters
    • Method Detail

      • charsSkipped

        long charsSkipped()
      • bytesSkipped

        long bytesSkipped()