public static byte readByte(InputStream input) throws SerializationException {
        try {
            int b = input.read();
            if (b == -1) {
                throw new SerializationException("Premature end of input, could not read byte.");
            }
            return (byte)b;
        } catch (IOException e) {
            throw new SerializationException(e);
        }
    }
Read a single byte from the input stream.
@throws SerializationException if EOF is encountered.
common/src/main/java/org/conscrypt/ct/Serialization.java