Class AbstractSharedBuffer
- java.lang.Object
-
- org.apache.hc.core5.http.impl.nio.ExpandableBuffer
-
- org.apache.hc.core5.http.nio.support.classic.AbstractSharedBuffer
-
- Direct Known Subclasses:
SharedInputBuffer,SharedOutputBuffer
@Contract(threading=SAFE) abstract class AbstractSharedBuffer extends ExpandableBuffer
- Since:
- 5.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.hc.core5.http.impl.nio.ExpandableBuffer
ExpandableBuffer.Mode
-
-
Constructor Summary
Constructors Constructor Description AbstractSharedBuffer(java.util.concurrent.locks.ReentrantLock lock, int initialBufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()intcapacity()Returns available capacity of this buffer.booleanhasData()Determines if the buffer contains data.booleanisEndStream()intlength()Returns the length of this buffer.voidreset()-
Methods inherited from class org.apache.hc.core5.http.impl.nio.ExpandableBuffer
buffer, clear, ensureAdjustedCapacity, ensureCapacity, expand, mode, setInputMode, setOutputMode, toString
-
-
-
-
Method Detail
-
hasData
public boolean hasData()
Description copied from class:ExpandableBufferDetermines if the buffer contains data.Sets the mode to output.
- Overrides:
hasDatain classExpandableBuffer- Returns:
trueif there is data in the buffer,falseotherwise.
-
capacity
public int capacity()
Description copied from class:ExpandableBufferReturns available capacity of this buffer.- Overrides:
capacityin classExpandableBuffer- Returns:
- buffer length.
-
length
public int length()
Description copied from class:ExpandableBufferReturns the length of this buffer.Sets the mode to output.
- Overrides:
lengthin classExpandableBuffer- Returns:
- buffer length.
-
abort
public void abort()
-
reset
public void reset()
-
isEndStream
public boolean isEndStream()
-
-