com.netaporter.salad.metrics

io

package io

Visibility
  1. Public
  2. All

Type Members

  1. class ThreadUnsafeByteArrayOutputStream extends OutputStream

    This class implements an output stream in which the data is written into a byte array.

    This class implements an output stream in which the data is written into a byte array. The buffer automatically grows as data is written to it. The data can be retrieved using toByteArray() and toString().

    Closing a ThreadUnsafeByteArrayOutputStream has no effect. The methods in this class can be called after the stream has been closed without generating an IOException.

    This is modified to remove the synchronized methods, as in most cases the ByteArrayOutputStream is once use, single threaded in most cases.

    Since

    JDK1.0

Ungrouped