ByteBufferHolder (Apache Tomcat 9.0.22 API Documentation)

org.apache.tomcat.util.buf

## Class ByteBufferHolder

- java.lang.Object
- - org.apache.tomcat.util.buf.ByteBufferHolder

-     public class ByteBufferHolder
      extends java.lang.Object

  Simple wrapper for a `ByteBuffer` that remembers if the buffer has been flipped or not.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ByteBufferHolder(java.nio.ByteBuffer buf, boolean flipped)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `flip()`
    `java.nio.ByteBuffer` | `getBuf()`
    `boolean` | `isFlipped()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ByteBufferHolder

          public ByteBufferHolder(java.nio.ByteBuffer buf,
                                  boolean flipped)

  - ### Method Detail

    - #### getBuf

          public java.nio.ByteBuffer getBuf()

    - #### isFlipped

          public boolean isFlipped()

    - #### flip

          public boolean flip()

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