@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, write
public ByteArrayOutputStreamWithPos()
public ByteArrayOutputStreamWithPos(int size)
public void write(int b)
write
in class OutputStream
public void write(byte[] b, int off, int len)
write
in class OutputStream
public void reset()
public byte[] toByteArray()
public int size()
public int getPosition()
public void setPosition(int position)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
public byte[] getBuf()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.