public class ObjectBuilderImpl<D,W> extends java.lang.Object implements ObjectBuilder<D,W>
Constructor and Description |
---|
ObjectBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
int |
getCompletedSize()
Amount of bytes read so far.
|
D |
getFinalObject() |
W |
getPartialDataHolder()
Get the partially build object
|
int |
getTotalSize()
Total no of bytes that should be read from buffer to completely read the current object
|
void |
setFinalObject(D finalObject)
Set the final object.
|
public int getCompletedSize()
ObjectBuilder
getCompletedSize
in interface ObjectBuilder<D,W>
public int getTotalSize()
ObjectBuilder
getTotalSize
in interface ObjectBuilder<D,W>
public W getPartialDataHolder()
ObjectBuilder
getPartialDataHolder
in interface ObjectBuilder<D,W>
public void setFinalObject(D finalObject)
ObjectBuilder
setFinalObject
in interface ObjectBuilder<D,W>
public D getFinalObject()