Package org.aoju.bus.core.io.sink
Class DeflaterSink
java.lang.Object
org.aoju.bus.core.io.sink.DeflaterSink
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Pushes all buffered bytes to their final destination and releases the resources held by this sink.voidflush()Pushes all buffered bytes to their final destination.timeout()Returns the timeout for this sink.toString()voidRemovesbyteCountbytes fromsourceand appends them to this.
-
Constructor Details
-
DeflaterSink
-
-
Method Details
-
write
Description copied from interface:SinkRemovesbyteCountbytes fromsourceand appends them to this.- Specified by:
writein interfaceSink- Throws:
IOException
-
flush
-
close
Description copied from interface:SinkPushes all buffered bytes to their final destination and releases the resources held by this sink. It is an error to write a closed sink. It is safe to close a sink more than once.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceSink- Throws:
IOException
-
timeout
-
toString
-