All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

  • Field Summary

    Fields

    protected byte[]

    The internal buffer where data is stored.

    protected int

    The number of valid bytes in the buffer.

  • Constructor Summary

    Constructors

    Creates a new buffered output stream to write data to the specified underlying output stream.

    Creates a new buffered output stream to write data to the specified underlying output stream with the specified buffer size.

  • Method Summary

    void

    flush()

    Flushes this buffered output stream.

    void

    write(byte[] b, int off, int len)

    Writes len bytes from the specified byte array starting at offset off to this buffered output stream.

    void

    write(int b)

    Writes the specified byte to this buffered output stream.

  • Field Details

    • buf

    • count

  • Constructor Details

    • BufferedOutputStream

    • BufferedOutputStream

  • Method Details

    • write

    • write

    • flush