|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.common.io.BinaryEntryInputStream
public class BinaryEntryInputStream
Wrapper around an input stream that can be used to read simple values, written using the BinaryEntryOutputStream. This input stream reads whitespace-separated entries from an input stream. That means that
the entries (except for binary entries) may not contain whitespace themselves.
| Constructor Summary | |
|---|---|
BinaryEntryInputStream(InputStream inputStream)
Initialize a BinaryEntryInputStream reading its data from the given inputStream. |
|
| Method Summary | |
|---|---|
byte[] |
readBytes()
Reads the next entry as a byte array. |
long |
readNumber()
Reads the next entry as a number (long). |
String |
readString()
Reads the next entry as a String value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryEntryInputStream(InputStream inputStream)
inputStream.
inputStream - The input stream providing the data| Method Detail |
|---|
public long readNumber()
throws IOException
IOException - if an error occurs reading from the backing stream
NumberFormatException - if the entry read does not represent a Long
public String readString()
throws IOException
IOException - if an error occurs reading from the backing stream
public byte[] readBytes()
throws IOException
numberOfBytes containing the entry read, or null of the input
stream did not contain all the bytes for this entry.
IOException - if an error occurs reading from the backing stream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||