public byte[] getTail() {
        int size = (int) Math.min(tailSize, bytesRead);
        byte[] result = new byte[size];
        System.arraycopy(tailBuffer, currentIndex, result, 0, size - currentIndex);
        System.arraycopy(tailBuffer, 0, result, size - currentIndex, currentIndex);
        return result;
    }
Returns an array with the last data read from the underlying stream. If
the underlying stream contained more data than the ''tailSize''
constructor argument, the returned array has a length of ''tailSize''.
Otherwise, its length equals the number of bytes read.

@return an array with the last data read from the underlying stream
tika-core/src/main/java/org/apache/tika/io/TailStream.java