Package org.apache.tomcat.util.buf
Class ByteBufferHolder
- java.lang.Object
-
- org.apache.tomcat.util.buf.ByteBufferHolder
-
public class ByteBufferHolder extends Object
Simple wrapper for aByteBuffer
that remembers if the buffer has been flipped or not.
-
-
Constructor Summary
Constructors Constructor Description ByteBufferHolder(ByteBuffer buf, boolean flipped)
-
-
-
Constructor Detail
-
ByteBufferHolder
public ByteBufferHolder(ByteBuffer buf, boolean flipped)
-
-
Method Detail
-
getBuf
public ByteBuffer getBuf()
-
isFlipped
public boolean isFlipped()
-
flip
public boolean flip()
-
-