org.msgpack.io
Class StreamInput
java.lang.Object
org.msgpack.io.StreamInput
- All Implemented Interfaces:
- Closeable, Input
public class StreamInput
- extends Object
- implements Input
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamInput
public StreamInput(InputStream in)
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Specified by:
read in interface Input
- Throws:
IOException
tryRefer
public boolean tryRefer(BufferReferer ref,
int size)
throws IOException
- Specified by:
tryRefer in interface Input
- Throws:
IOException
readByte
public byte readByte()
throws IOException
- Specified by:
readByte in interface Input
- Throws:
IOException
advance
public void advance()
- Specified by:
advance in interface Input
getByte
public byte getByte()
throws IOException
- Specified by:
getByte in interface Input
- Throws:
IOException
getShort
public short getShort()
throws IOException
- Specified by:
getShort in interface Input
- Throws:
IOException
getInt
public int getInt()
throws IOException
- Specified by:
getInt in interface Input
- Throws:
IOException
getLong
public long getLong()
throws IOException
- Specified by:
getLong in interface Input
- Throws:
IOException
getFloat
public float getFloat()
throws IOException
- Specified by:
getFloat in interface Input
- Throws:
IOException
getDouble
public double getDouble()
throws IOException
- Specified by:
getDouble in interface Input
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable
- Throws:
IOException
Copyright © 2011. All Rights Reserved.