public class ReadDocumentContext extends Object implements DocumentContext
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
notComplete |
protected boolean |
present |
protected AbstractWire |
wire |
| Constructor and Description |
|---|
ReadDocumentContext(Wire wire) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeReadLimit(long readLimit) |
void |
closeReadPosition(long readPosition) |
long |
index()
Index last read, only available for read contexts.
|
boolean |
isMetaData() |
boolean |
isNotComplete() |
boolean |
isPresent() |
void |
metaData(boolean metaData)
Set the metaData flag.
|
int |
sourceId() |
void |
start() |
Wire |
wire() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDataprotected AbstractWire wire
protected boolean present
protected boolean notComplete
public ReadDocumentContext(@Nullable
Wire wire)
public boolean isMetaData()
isMetaData in interface DocumentContextpublic void metaData(boolean metaData)
DocumentContextmetaData in interface DocumentContextmetaData - write as metaData instead of data if true.public boolean isPresent()
isPresent in interface DocumentContextpublic void closeReadPosition(long readPosition)
public void closeReadLimit(long readLimit)
public Wire wire()
wire in interface DocumentContextpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void start()
public long index()
SourceContextindex in interface SourceContextpublic int sourceId()
sourceId in interface SourceContextpublic boolean isNotComplete()
isNotComplete in interface DocumentContextCopyright © 2017. All rights reserved.