public class DataLocation
extends java.lang.Object
Constructor and Description |
---|
DataLocation(org.apache.daffodil.api.DataLocation dl) |
Modifier and Type | Method and Description |
---|---|
long |
bitPos1b()
Get the position of the data, in bits, using 1-based indexing
|
long |
bytePos1b()
Get the position of the data, in bytes, using 1-based indexing
|
boolean |
isAtEnd()
Deprecated.
Use comparison of bitPos1b() with expected position instead. Since 3.1.0.
|
java.lang.String |
toString() |
public long bitPos1b()
public long bytePos1b()
public boolean isAtEnd()
Blocks until either one byte of data can be read, or end-of-data is encountered.
It is generally not advised to use this on network TCP data streams as it will block waiting for the sender of data to provide more data or close the stream.
public java.lang.String toString()
toString
in class java.lang.Object