Package org.aoju.bus.core.io.sink
Class FaultHideSink
java.lang.Object
org.aoju.bus.core.io.sink.AssignSink
org.aoju.bus.core.io.sink.FaultHideSink
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,Sink
不会抛出IOExceptions的接收器, 即使底层接收器抛出了IOExceptions
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.aoju.bus.core.io.sink.AssignSink
delegate, timeout, toString
-
Constructor Details
-
FaultHideSink
-
-
Method Details
-
write
Description copied from interface:SinkRemovesbyteCountbytes fromsourceand appends them to this.- Specified by:
writein interfaceSink- Overrides:
writein classAssignSink- Throws:
IOException
-
flush
Description copied from interface:SinkPushes all buffered bytes to their final destination.- Specified by:
flushin interfaceFlushable- Specified by:
flushin interfaceSink- Overrides:
flushin classAssignSink- Throws:
IOException
-
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- Overrides:
closein classAssignSink- Throws:
IOException
-
onException
-