Package 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 aByteBuffer
that remembers if the buffer has been flipped or not.
-
-
Constructor Summary
Constructors Constructor Description ByteBufferHolder(java.nio.ByteBuffer buf, boolean flipped)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
flip()
java.nio.ByteBuffer
getBuf()
boolean
isFlipped()
-