public class MemoryStream extends OutputStream
| Constructor and Description |
|---|
MemoryStream() |
MemoryStream(int blockSize) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
digest(String algorithm) |
boolean |
isEmpty() |
void |
reset() |
int |
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 byte[] digest(String algorithm) throws NoSuchAlgorithmException, IOException
NoSuchAlgorithmExceptionIOExceptionpublic int size()
public boolean isEmpty()
public void reset()
public String toString(String charset) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2017. All rights reserved.