@Internal public class ByteArrayOutputStreamWithPos extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buffer |
protected int |
count |
| Constructor and Description |
|---|
ByteArrayOutputStreamWithPos() |
ByteArrayOutputStreamWithPos(int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
getBuf() |
int |
getPosition() |
void |
reset() |
void |
setPosition(int position) |
int |
size() |
byte[] |
toByteArray() |
String |
toString() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flush, writepublic ByteArrayOutputStreamWithPos()
public ByteArrayOutputStreamWithPos(int size)
public void write(int b)
write in class OutputStreampublic void write(byte[] b,
int off,
int len)
write in class OutputStreampublic void reset()
public byte[] toByteArray()
public int size()
public int getPosition()
public void setPosition(int position)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic byte[] getBuf()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.