|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.common.io.BinaryEntryOutputStream
public class BinaryEntryOutputStream
Wrapper around an output stream that can be used to write simple values, that can be read back in by the BinaryEntryInputStream. This output stream writes whitespace-separated entries to an output stream. That means that
the entries (except for binary entries) may not contain whitespace themselves.
| Constructor Summary | |
|---|---|
BinaryEntryOutputStream(OutputStream outputStream)
Initialize a BinaryEntryOutputStream writing its entries to the given outputStream. |
|
| Method Summary | |
|---|---|
void |
writeBytes(byte[] bytes)
Writes the given bytes to the backing stream. |
void |
writeNumber(int value)
Writes a numeric entry. |
void |
writeNumber(long value)
Writes a numeric entry. |
void |
writeString(String value)
Writes a String entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryEntryOutputStream(OutputStream outputStream)
outputStream.
outputStream - the output stream where entries are to be written to| Method Detail |
|---|
public void writeNumber(long value)
throws IOException
value - The value to write
IOException - if an error occurs reading from the backing stream
public void writeNumber(int value)
throws IOException
value - The value to write
IOException - if an error occurs reading from the backing stream
public void writeString(String value)
throws IOException
value may not contain any whitespace characters. Use writeBytes(byte[]) to write such entries instead.
value - The String to write. Should not contain any whitespace characters.
IOException - if an error occurs reading from the backing stream
public void writeBytes(byte[] bytes)
throws IOException
bytes to the backing stream. The entry is terminated with a newline character.
bytes - The bytes to write
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 | |||||||||