com.faunos.util.io
Class BufferUtil

java.lang.Object
  extended by com.faunos.util.io.BufferUtil

public class BufferUtil
extends Object

java.nio.Buffer utility.


Field Summary
static BufferUtil INSTANCE
           
 
Constructor Summary
BufferUtil()
           
 
Method Summary
 void appendAscii(CharSequence ascii, ByteBuffer out)
           
 ByteBuffer asciiBuffer(CharSequence ascii)
           
 ByteBuffer asciiBuffer(CharSequence ascii, boolean direct)
           
 int getRemaining(Buffer[] buffers)
           
 int getRemaining(Buffer[] buffers, int off)
           
 int getRemaining(Buffer[] buffers, int off, int end)
           
 boolean hasRemaining(Buffer[] buffers)
           
 int indexOfHasRemaining(Buffer[] buffers)
           
 int indexOfHasRemaining(Buffer[] buffers, int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final BufferUtil INSTANCE
Constructor Detail

BufferUtil

public BufferUtil()
Method Detail

getRemaining

public int getRemaining(Buffer[] buffers,
                        int off,
                        int end)

getRemaining

public int getRemaining(Buffer[] buffers,
                        int off)

getRemaining

public int getRemaining(Buffer[] buffers)

indexOfHasRemaining

public int indexOfHasRemaining(Buffer[] buffers,
                               int index)

indexOfHasRemaining

public int indexOfHasRemaining(Buffer[] buffers)

hasRemaining

public boolean hasRemaining(Buffer[] buffers)

asciiBuffer

public ByteBuffer asciiBuffer(CharSequence ascii)

asciiBuffer

public ByteBuffer asciiBuffer(CharSequence ascii,
                              boolean direct)

appendAscii

public void appendAscii(CharSequence ascii,
                        ByteBuffer out)


SourceForge.net Logo