public static class NByteArrayPrintStream.ByteArrayOutputStream2 extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected int |
count |
| Constructor and Description |
|---|
ByteArrayOutputStream2() |
ByteArrayOutputStream2(int size) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
asInputStream() |
int |
available(int from) |
void |
close() |
int |
read(byte[] buffer,
int off,
int len,
int pointer) |
int |
read(int pointer) |
void |
reset() |
int |
size() |
byte[] |
toByteArray() |
String |
toString() |
String |
toString(String charsetName) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeTo(OutputStream out) |
flush, writepublic ByteArrayOutputStream2()
public ByteArrayOutputStream2(int size)
public InputStream asInputStream()
public void write(int b)
write in class OutputStreampublic void write(byte[] b,
int off,
int len)
write in class OutputStreampublic void writeTo(OutputStream out) throws IOException
IOExceptionpublic void reset()
public byte[] toByteArray()
public int size()
public String toString(String charsetName) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreampublic int available(int from)
public int read(int pointer)
public int read(byte[] buffer,
int off,
int len,
int pointer)
Copyright © 2025 vpc open source initiative. All rights reserved.