Byte getByte(final int index) {
            return index < super.count
                    ? buf[index]
                    : null;
        }
Little manual test to make a file with bad bytes in it for curling into stroom
stroom-pipeline/src/test/java/stroom/pipeline/reader/TestByteStreamDecoder.java