Package org.eclipse.jetty.io
Class ByteBufferOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.eclipse.jetty.io.ByteBufferOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
@Deprecated(since="2021-05-27") public class ByteBufferOutputStream extends OutputStream
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Simple wrapper of a ByteBuffer as an OutputStream. The buffer does not grow and this class will throw anBufferOverflowExceptionif the buffer capacity is exceeded.
-
-
Constructor Summary
Constructors Constructor Description ByteBufferOutputStream(ByteBuffer buffer)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.voidflush()Deprecated.voidwrite(byte[] b)Deprecated.voidwrite(byte[] b, int off, int len)Deprecated.voidwrite(int b)Deprecated.-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
ByteBufferOutputStream
public ByteBufferOutputStream(ByteBuffer buffer)
Deprecated.
-
-
Method Detail
-
close
public void close()
Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream
-
flush
public void flush()
Deprecated.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream
-
write
public void write(byte[] b)
Deprecated.- Overrides:
writein classOutputStream
-
write
public void write(byte[] b, int off, int len)Deprecated.- Overrides:
writein classOutputStream
-
write
public void write(int b)
Deprecated.- Specified by:
writein classOutputStream
-
-