java.io.ByteArrayOutputStream

This an output stream which outputs any written bytes to a byte array.