Byte getByte(final int index) {
            return index < buf.length
                    ? buf[index]
                    : null;
        }
Buffer for reading byte data with a provided encoding
stroom-pipeline/src/main/java/stroom/pipeline/reader/ReaderRecorder.java