@Override
    public int read() {
        fetchNonEmptyBuffer();
        if (currBuf == null) return -1;

        byte b = currBuf.get();
        if (marked != null) {
            if (readSinceMarked < marked.length) {
                marked[readSinceMarked++] = b;
            } else {
                marked = null;
            }
        }
        return ((int)b) & 0xFF;
    }
<p>Constructs a new ContentInputStream that reads from the given {@link ReadableContentChannel}.</p>

@param content The content to read the stream from.
jdisc_core/src/main/java/com/yahoo/jdisc/handler/UnsafeContentInputStream.java