public abstract class AbstractChunk
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
ARRAY_MAX_SIZE |
protected int |
end |
protected boolean |
hasHashCode |
protected boolean |
isSet |
protected int |
start |
Constructor and Description |
---|
AbstractChunk() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
getBufferElement(int index) |
int |
getEnd() |
int |
getLength() |
int |
getLimit() |
protected int |
getLimitInternal() |
int |
getOffset() |
int |
getStart() |
int |
hash() |
int |
hashCode() |
int |
indexOf(java.lang.String src,
int srcOff,
int srcLen,
int myOff) |
boolean |
isNull() |
void |
recycle()
Resets the chunk to an uninitialized state.
|
void |
setEnd(int i) |
void |
setLimit(int limit)
Maximum amount of data in this buffer.
|
void |
setOffset(int off) |
public static final int ARRAY_MAX_SIZE
protected boolean hasHashCode
protected boolean isSet
protected int start
protected int end
public void setLimit(int limit)
ARRAY_MAX_SIZE
. Can be smaller than the current buffer
size ( which will not shrink ). When the limit is reached, the buffer
will be flushed (if out is set) or throw exception.limit
- The new limitpublic int getLimit()
protected int getLimitInternal()
public int getStart()
public int getEnd()
public void setEnd(int i)
public int getOffset()
public void setOffset(int off)
public int getLength()
public boolean isNull()
public int indexOf(java.lang.String src, int srcOff, int srcLen, int myOff)
public void recycle()
public int hashCode()
hashCode
in class java.lang.Object
public int hash()
protected abstract int getBufferElement(int index)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.