Methods Summary |
---|
public void | close()Close this output stream, causing any buffered data to be flushed and
any further output data to throw an IOException.
// nothing to do with cached bytes
|
public void | flush()Flush any buffered data for this output stream, which also causes the
response to be committed.
// nothing to do with cached bytes
|
public byte[] | getBytes()return the cached bytes
return baos.toByteArray();
|
public void | write(int b)Write the specified byte to our output stream.
baos.write(b);
|
public void | write(byte[] b)Write b.length bytes from the specified byte array
to our output stream.
baos.write(b, 0, b.length);
|
public void | write(byte[] b, int off, int len)Write len bytes from the specified byte array, starting
at the specified offset, to our output stream.
baos.write(b, off, len);
|