org.msgpack.io
Class LinkedBufferInput

java.lang.Object
  extended by org.msgpack.io.LinkedBufferInput
All Implemented Interfaces:
Closeable, Input

public class LinkedBufferInput
extends Object
implements Input


Constructor Summary
LinkedBufferInput(int bufferSize)
           
 
Method Summary
 void advance()
           
 void clear()
           
 void close()
           
 void feed(byte[] b)
           
 void feed(byte[] b, boolean nocopy)
           
 void feed(byte[] b, int off, int len)
           
 void feed(byte[] b, int off, int len, boolean nocopy)
           
 void feed(ByteBuffer b)
           
 void feed(ByteBuffer buf, boolean nocopy)
           
 byte getByte()
           
 double getDouble()
           
 float getFloat()
           
 int getInt()
           
 long getLong()
           
 short getShort()
           
 int read(byte[] b, int off, int len)
           
 byte readByte()
           
 boolean tryRefer(BufferReferer ref, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedBufferInput

public LinkedBufferInput(int bufferSize)
Method Detail

read

public int read(byte[] b,
                int off,
                int len)
         throws EOFException
Specified by:
read in interface Input
Throws:
EOFException

tryRefer

public boolean tryRefer(BufferReferer ref,
                        int len)
                 throws IOException
Specified by:
tryRefer in interface Input
Throws:
IOException

readByte

public byte readByte()
              throws EOFException
Specified by:
readByte in interface Input
Throws:
EOFException

advance

public void advance()
Specified by:
advance in interface Input

getByte

public byte getByte()
             throws EOFException
Specified by:
getByte in interface Input
Throws:
EOFException

getShort

public short getShort()
               throws EOFException
Specified by:
getShort in interface Input
Throws:
EOFException

getInt

public int getInt()
           throws EOFException
Specified by:
getInt in interface Input
Throws:
EOFException

getLong

public long getLong()
             throws EOFException
Specified by:
getLong in interface Input
Throws:
EOFException

getFloat

public float getFloat()
               throws EOFException
Specified by:
getFloat in interface Input
Throws:
EOFException

getDouble

public double getDouble()
                 throws EOFException
Specified by:
getDouble in interface Input
Throws:
EOFException

feed

public void feed(byte[] b)

feed

public void feed(byte[] b,
                 boolean nocopy)

feed

public void feed(byte[] b,
                 int off,
                 int len)

feed

public void feed(byte[] b,
                 int off,
                 int len,
                 boolean nocopy)

feed

public void feed(ByteBuffer b)

feed

public void feed(ByteBuffer buf,
                 boolean nocopy)

clear

public void clear()

close

public void close()
Specified by:
close in interface Closeable


Copyright © 2011. All Rights Reserved.