public class ReplicationOutputStream extends ByteArrayOutputStream
buf, count| Constructor and Description |
|---|
ReplicationOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
backToAppendMode()
Note: This must be used only after a call to moveTo
|
int |
mark() |
int |
moveTo(int pos) |
void |
reWrite(int mark,
byte[] data) |
byte[] |
toByteArray() |
void |
writeBoolean(boolean b) |
void |
writeInt(int value) |
void |
writeLengthPrefixedBytes(byte[] data) |
void |
writeLengthPrefixedString(String str) |
void |
writeLong(long value) |
close, reset, size, toString, toString, toString, write, write, writeToflush, writepublic int mark()
public void reWrite(int mark,
byte[] data)
public void writeInt(int value)
throws IOException
IOExceptionpublic void writeLong(long value)
throws IOException
IOExceptionpublic void writeLengthPrefixedString(String str) throws IOException
IOExceptionpublic void writeLengthPrefixedBytes(byte[] data)
throws IOException
IOExceptionpublic void writeBoolean(boolean b)
throws IOException
IOExceptionpublic int moveTo(int pos)
public void backToAppendMode()
public byte[] toByteArray()
toByteArray in class ByteArrayOutputStreamCopyright © 2017–2019 Eclipse Foundation. All rights reserved.