ByteChunk.ByteOutputChannel (Apache Tomcat 7.0.104 API Documentation)

org.apache.tomcat.util.buf

## Interface ByteChunk.ByteOutputChannel

- All Known Implementing Classes:
    InternalOutputBuffer, OutputBuffer
  Enclosing class:
    ByteChunk

      public static interface ByteChunk.ByteOutputChannel

  When we need more space we'll either grow the buffer ( up to the limit ) or send it to a channel. Same as java.nio.channel.WritableByteChannel.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `realWriteBytes(byte[] buf, int off, int len)` Send the bytes ( usually the internal conversion buffer ).

- - ### Method Detail

    - #### realWriteBytes

          void realWriteBytes(byte[] buf,
                            int off,
                            int len)
                              throws IOException

      Send the bytes ( usually the internal conversion buffer ). Expect 8k output if the buffer is full.
      Parameters:
        `buf` - bytes that will be written
        `off` - offset in the bytes array
        `len` - length that will be written
      Throws:
        `IOException` - If an I/O occurs while writing the bytes

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.