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, writepublic FastByteArrayOutputStream()
public FastByteArrayOutputStream(int blockSize)
public void writeTo(OutputStream out) throws IOException
IOExceptionpublic void writeTo(RandomAccessFile out) throws IOException
IOExceptionpublic 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 OutputStreamIOExceptionpublic void write(byte[] data,
                  int offset,
                  int length)
           throws IOException
write in class OutputStreamIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamCopyright © 2000–2025 Apache Software Foundation. All rights reserved.