@Override
    public int available() {
        if (currBuf != null && currBuf.remaining() > 0) {
            return currBuf.remaining();
        }
        return content.available();
    }
<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