Module java.base
Package java.io

# Class ByteArrayOutputStream

=
public class ByteArrayOutputStream
extends java.io.OutputStream

## Fields

- =
  protected byte[] buf
- =
  protected int count

## Constructors

- =
  public ByteArrayOutputStream()
- =
  public ByteArrayOutputStream(int arg0)

## Methods

- =
  public void close() throws java.io.IOException
- =
  public void reset()
- =
  public int size()
- =
  public byte[] toByteArray()
- =
  public java.lang.String toString()
- =
  @Deprecated
  public java.lang.String toString(int arg0)
- =
  public java.lang.String toString(java.lang.String arg0) throws java.io.UnsupportedEncodingException
- =
  public java.lang.String toString(java.nio.charset.Charset arg0)
- =
  public void write(int arg0)
- =
  public void write(byte[] arg0, int arg1, int arg2)
- =
  public void writeBytes(byte[] arg0)
- =
  public void writeTo(java.io.OutputStream arg0) throws java.io.IOException

## Summary

No differences.