|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
com.github.shyiko.mysql.binlog.io.ByteArrayInputStream
public class ByteArrayInputStream
| Constructor Summary | |
|---|---|
ByteArrayInputStream(byte[] bytes)
|
|
ByteArrayInputStream(InputStream inputStream)
|
|
| Method Summary | |
|---|---|
int |
available()
|
void |
close()
|
void |
enterBlock(int length)
|
int |
peek()
|
int |
read()
|
byte[] |
read(int length)
Alias for read(result, 0, length). |
BitSet |
readBitSet(int length,
boolean bigEndian)
|
int |
readInteger(int length)
Read int written in little-endian format. |
String |
readLengthEncodedString()
Read variable-length string. |
long |
readLong(int length)
Read long written in little-endian format. |
int |
readPackedInteger()
|
Number |
readPackedNumber()
Format (first-byte-based): 0-250 - The first byte is the number (in the range 0-250). |
String |
readString(int length)
Read fixed length string. |
String |
readZeroTerminatedString()
Read variable-length string. |
void |
skipToTheEndOfTheBlock()
|
| Methods inherited from class java.io.InputStream |
|---|
mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayInputStream(InputStream inputStream)
public ByteArrayInputStream(byte[] bytes)
| Method Detail |
|---|
public int readInteger(int length)
throws IOException
IOException
public long readLong(int length)
throws IOException
IOException
public String readString(int length)
throws IOException
IOException
public String readLengthEncodedString()
throws IOException
IOException
public String readZeroTerminatedString()
throws IOException
IOException
public byte[] read(int length)
throws IOException
IOException
public BitSet readBitSet(int length,
boolean bigEndian)
throws IOException
IOException
public int readPackedInteger()
throws IOException
IOExceptionreadPackedNumber()
public Number readPackedNumber()
throws IOException
IOException
public int available()
throws IOException
available in class InputStreamIOException
public int peek()
throws IOException
IOException
public int read()
throws IOException
read in class InputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOExceptionpublic void enterBlock(int length)
public void skipToTheEndOfTheBlock()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||