public byte toByte() throws IOException {
        List<Byte> bytes = this.serializeToByteList();

        if (bytes.size() != 1) {
            throw new IOException("The unexpected StreamObjectHeaderEnd8bit length");
        }

        return bytes.get(0);
    }
This method is used to get the byte value of the 8bit stream object header End.

@return Return StreamObjectHeaderEnd8bit value represented by byte.
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/onenote/fsshttpb/streamobj/StreamObjectHeaderEnd8bit.java