Top Description Fields Constructors Methods
com.mysql.cj.protocol.x

public Class ReusableOutputStream

extends FilterOutputStream
Class Inheritance
Imports
java.io.FilterOutputStream, .OutputStream

An OutputStream wrapper that allows switching to different underlying OutputStreams under the same OutputStream instance.

Field Summary

Inherited from java.io.FilterOutputStream:
out

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public OutputStream

Returns:

the previous underlying OutputStream.
setOutputStream
(OutputStream
the new OutputStream to set.
newOut
)

Sets a new underlying OutputStream in this ReusableOutputStream.

Inherited from java.io.FilterOutputStream:
closeflushwritewritewrite

Constructor Detail

ReusableOutputStreamback to summary
protected ReusableOutputStream(OutputStream out)

Method Detail

setOutputStreamback to summary
public OutputStream setOutputStream(OutputStream newOut)

Sets a new underlying OutputStream in this ReusableOutputStream.

Parameters
newOut:OutputStream

the new OutputStream to set.

Returns:OutputStream

the previous underlying OutputStream.