Class ByteBufferOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    @Deprecated(since="2021-05-27")
    public class ByteBufferOutputStream
    extends java.io.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 an BufferOverflowException if 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
      void close()
      Deprecated.
       
      void flush()
      Deprecated.
       
      void write​(byte[] b)
      Deprecated.
       
      void write​(byte[] b, int off, int len)
      Deprecated.
       
      void write​(int b)
      Deprecated.
       
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByteBufferOutputStream

        public ByteBufferOutputStream​(java.nio.ByteBuffer buffer)
        Deprecated.
    • Method Detail

      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.OutputStream
      • flush

        public void flush()
        Deprecated.
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class java.io.OutputStream
      • write

        public void write​(byte[] b)
        Deprecated.
        Overrides:
        write in class java.io.OutputStream
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
        Deprecated.
        Overrides:
        write in class java.io.OutputStream
      • write

        public void write​(int b)
        Deprecated.
        Specified by:
        write in class java.io.OutputStream