public class MemoryStream extends OutputStream implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
MemoryStream.NodeIterator |
| Constructor and Description |
|---|
MemoryStream() |
MemoryStream(int blockSize) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
digest(String algorithm) |
int |
getBlockSize() |
int |
getNodeCount() |
boolean |
isEmpty() |
void |
iterate(MemoryStream.NodeIterator iterator) |
void |
reset() |
long |
size() |
byte[] |
toByteArray() |
String |
toString() |
String |
toString(Charset charset) |
String |
toString(String charset) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeTo(OutputStream out) |
close, flush, writepublic MemoryStream()
public MemoryStream(int blockSize)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void writeTo(OutputStream out) throws IOException
IOExceptionpublic byte[] toByteArray()
public int getNodeCount()
public byte[] digest(String algorithm) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic void iterate(MemoryStream.NodeIterator iterator) throws IOException
IOExceptionpublic String toString(String charset) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic int getBlockSize()
public long size()
public boolean isEmpty()
public void reset()
Copyright © 2019. All rights reserved.