@Override
    public int read() throws IOException {
        int c = super.read();
        if (c != -1) {
            appendByte((byte) c);
        }
        return c;
    }
{@inheritDoc} This implementation adds the read byte to the internal tail
buffer.
tika-core/src/main/java/org/apache/tika/io/TailStream.java