Closeable, Flushable, Serializable, AutoCloseablepublic class ByteChunks extends OutputStream implements Serializable
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
ByteChunks.ChunkIterator |
| Constructor | Description |
|---|---|
ByteChunks() |
|
ByteChunks(int blockSize) |
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
digest(String algorithm) |
|
int |
getBlockSize() |
|
int |
getChunkCount() |
|
boolean |
isEmpty() |
|
void |
iterate(ByteChunks.ChunkIterator iterator) |
|
void |
reset() |
|
long |
size() |
|
byte[] |
toByteArray() |
|
String |
toString() |
|
String |
toString(String charset) |
|
String |
toString(Charset charset) |
|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int b) |
|
void |
writeTo(OutputStream out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, flush, writepublic 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 getChunkCount()
public byte[] digest(String algorithm) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic void iterate(ByteChunks.ChunkIterator iterator) throws IOException
IOExceptionpublic String toString(String charset) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic int getBlockSize()
public long size()
public boolean isEmpty()
public void reset()
Copyright © 2018. All rights reserved.