// Copyright 2014, Kevin Ko <kevin@faveset.com>

package com.faveset.khttp;

import java.nio.ByteBuffer;
import javax.net.ssl.SSLEngine;

interface NetReader {
    boolean isEmpty();

    SSLEngineResult unwrap(SSLEngine engine, NetBuffer dest);
    SSLEngineResult unwrapUnsafe(SSLEngine engine, NetBuffer dest);

    void updateRead();

    SSLEngineResult wrap(SSLEngine engine, NetBuffer dest);
    SSLEngineResult wrapUnsafe(SSLEngine engine, NetBuffer dest);
}

@@ -153,16 +153,113 @@
 eader %7B%0A
+    /**%0A     * @return true if the NetReader does not contain any more data for reading.%0A     */%0A
     bool

Revise comments.