jVinci/src/main/java/org/apache/vinci/transport/document/XTalkToSAX.java [222:234]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  private static byte readByte(InputStream aIs) throws IOException {
    int byteAsInt = aIs.read();

    if (byteAsInt == -1) {
      throw new EOFException("Unexpected end of stream");
    }

    if (byteAsInt < Byte.MIN_VALUE || byteAsInt > Byte.MAX_VALUE) {
      throw new IOException("Illegal byte value [" + byteAsInt + "]");
    }

    return (byte) byteAsInt;
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



jVinci/src/main/java/org/apache/vinci/transport/XTalkTransporter.java [673:685]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  private static byte readByte(InputStream aIs) throws IOException {
    int byteAsInt = aIs.read();

    if (byteAsInt == -1) {
      throw new EOFException("Unexpected end of stream");
    }

    if (byteAsInt < Byte.MIN_VALUE || byteAsInt > Byte.MAX_VALUE) {
      throw new IOException("Illegal byte value [" + byteAsInt + "]");
    }

    return (byte) byteAsInt;
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



