Class ByteSource.Separator

  • All Implemented Interfaces:
    ByteSource
    Enclosing interface:
    ByteSource

    public static class ByteSource.Separator
    extends java.lang.Object
    implements ByteSource
    Construct the shortest common prefix of prevMax and currMin that separates those two byte streams. If useCurr == true the last byte of the returned stream comes from currMin and is the first byte which is greater than byte on the corresponding position of prevMax. Otherwise, the last byte of the returned stream comes from prevMax and is incremented by one, still guaranteeing that it is <= than the byte on the corresponding position of currMin.
    • Method Detail

      • next

        public int next()
        Description copied from interface: ByteSource
        Consume the next byte, unsigned. Must be between 0 and 255, or END_OF_STREAM if there are no more bytes.
        Specified by:
        next in interface ByteSource