|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.netheos.pcsapi.bytesio.MemoryByteSink
public class MemoryByteSink
Implementation of ByteSource in memory
| Constructor Summary | |
|---|---|
MemoryByteSink()
|
|
| Method Summary | |
|---|---|
byte[] |
getData()
Get the data stored in the sink |
ByteSinkStream |
openStream()
Returns a ByteSinkStream object for writing data, to be closed by caller. |
void |
setExpectedLength(long expectedLength)
Defines the number of bytes that are expected to be written to the stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryByteSink()
| Method Detail |
|---|
public ByteSinkStream openStream()
ByteSink
openStream in interface ByteSinkpublic void setExpectedLength(long expectedLength)
ByteSink
setExpectedLength in interface ByteSinkpublic byte[] getData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||