Package org.eclipse.jetty.io.content
Class ContentSinkOutputStream
java.lang.Object
java.io.OutputStream
org.eclipse.jetty.io.content.ContentSinkOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
An OutputStream
backed by a Content.Sink
.
Any content written to this OutputStream
is written
to the Content.Sink.write(boolean, ByteBuffer, Callback)
with a callback that blocks the caller until it is succeeded or
failed.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
ContentSinkOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
close
- Throws:
IOException
-