Class LimitedByteBufOutputStream

java.lang.Object
java.io.OutputStream
io.netty.buffer.ByteBufOutputStream
org.apache.dubbo.remoting.http12.LimitedByteBufOutputStream
All Implemented Interfaces:
Closeable, DataOutput, Flushable, AutoCloseable

public class LimitedByteBufOutputStream extends io.netty.buffer.ByteBufOutputStream
  • Constructor Summary

    Constructors
    Constructor
    Description
    LimitedByteBufOutputStream(io.netty.buffer.ByteBuf byteBuf, int capacity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(byte[] b)
     
    void
    write(byte[] b, int off, int len)
     
    void
    write(int b)
     

    Methods inherited from class io.netty.buffer.ByteBufOutputStream

    buffer, close, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF, writtenBytes

    Methods inherited from class java.io.OutputStream

    flush, nullOutputStream

    Methods inherited from class java.lang.Object

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

    • LimitedByteBufOutputStream

      public LimitedByteBufOutputStream(io.netty.buffer.ByteBuf byteBuf, int capacity)
  • Method Details

    • write

      public void write(int b) throws IOException
      Specified by:
      write in interface DataOutput
      Overrides:
      write in class io.netty.buffer.ByteBufOutputStream
      Throws:
      IOException
    • write

      public void write(byte[] b) throws IOException
      Specified by:
      write in interface DataOutput
      Overrides:
      write in class io.netty.buffer.ByteBufOutputStream
      Throws:
      IOException
    • write

      public void write(byte[] b, int off, int len) throws IOException
      Specified by:
      write in interface DataOutput
      Overrides:
      write in class io.netty.buffer.ByteBufOutputStream
      Throws:
      IOException