Package org.eclipse.jetty.io
Class ByteBufferOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.eclipse.jetty.io.ByteBufferOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
@Deprecated(since="2021-05-27") public class ByteBufferOutputStream extends java.io.OutputStreamDeprecated.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(java.nio.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.
-
-
-
Method Detail
-
close
public void close()
Deprecated.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream
-
flush
public void flush()
Deprecated.- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream
-
write
public void write(byte[] b)
Deprecated.- Overrides:
writein classjava.io.OutputStream
-
write
public void write(byte[] b, int off, int len)Deprecated.- Overrides:
writein classjava.io.OutputStream
-
write
public void write(int b)
Deprecated.- Specified by:
writein classjava.io.OutputStream
-
-