Code example for SocketChannel

Methods: write

0
     * @throws IOException 
     * @return 
     */     
    public boolean write() throws IOException { 
        if (headerBuffer.hasRemaining()) {
            channel.write(headerBuffer);
            return !headerBuffer.hasRemaining();
        } 
         
        return true; 
    } 
}