ByteChunk.ByteInputChannel (Apache Tomcat 7.0.103 API Documentation)

org.apache.tomcat.util.buf

## Interface ByteChunk.ByteInputChannel

- All Known Implementing Classes:
    InputBuffer
  Enclosing class:
    ByteChunk

      public static interface ByteChunk.ByteInputChannel

  Input interface, used when the buffer is empty. Same as java.nio.channels.ReadableByteChannel

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `realReadBytes(byte[] cbuf, int off, int len)` Read new bytes.

- - ### Method Detail

    - #### realReadBytes

          int realReadBytes(byte[] cbuf,
                          int off,
                          int len)
                            throws IOException

      Read new bytes.
      Parameters:
        `cbuf` - bytes that will be read
        `off` - offset in the bytes array
        `len` - length that will be read
      Returns:
        The number of bytes read
      Throws:
        `IOException` - If an I/O error occurs during reading

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