public class FastByteArrayOutputStream extends OutputStream
Constructor and Description |
---|
FastByteArrayOutputStream() |
FastByteArrayOutputStream(int blockSize) |
Modifier and Type | Method and Description |
---|---|
protected void |
addBuffer() |
void |
close() |
int |
getSize() |
byte[] |
toByteArray() |
String |
toString() |
void |
write(byte[] data,
int offset,
int length) |
void |
write(int datum) |
void |
writeTo(javax.servlet.jsp.JspWriter out,
String encoding)
This is a patched method (standard)
|
void |
writeTo(OutputStream out) |
void |
writeTo(RandomAccessFile out) |
void |
writeTo(Writer out,
String encoding)
This is a patched method (added for common Writer, needed for tests)
|
flush, write
public FastByteArrayOutputStream()
public FastByteArrayOutputStream(int blockSize)
public void writeTo(OutputStream out) throws IOException
IOException
public void writeTo(RandomAccessFile out) throws IOException
IOException
public void writeTo(Writer out, String encoding) throws IOException
out
- Writerencoding
- EncodingIOException
- If some output failedpublic void writeTo(javax.servlet.jsp.JspWriter out, String encoding) throws IOException
out
- Writerencoding
- EncodingIOException
- If some output failedpublic int getSize()
public byte[] toByteArray()
protected void addBuffer()
public void write(int datum) throws IOException
write
in class OutputStream
IOException
public void write(byte[] data, int offset, int length) throws IOException
write
in class OutputStream
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.