public class JsonLocation extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static JsonLocation |
NA
Shared immutable "N/A location" that can be returned to indicate
that no location information is available
|
Constructor and Description |
---|
JsonLocation(Object srcRef,
long totalChars,
int lineNr,
int colNr) |
JsonLocation(Object sourceRef,
long totalBytes,
long totalChars,
int lineNr,
int columnNr) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
long |
getByteOffset() |
long |
getCharOffset() |
int |
getColumnNr() |
int |
getLineNr() |
Object |
getSourceRef()
Reference to the original resource being read, if one available.
|
int |
hashCode() |
String |
toString() |
public static final JsonLocation NA
public JsonLocation(Object srcRef, long totalChars, int lineNr, int colNr)
public JsonLocation(Object sourceRef, long totalBytes, long totalChars, int lineNr, int columnNr)
public Object getSourceRef()
File
instance, this method would return
that File. Will return null if no such reference is available,
for example when InputStream
was used to
construct the parser instance.public int getLineNr()
public int getColumnNr()
public long getCharOffset()
public long getByteOffset()
Copyright © 2008-2017 FasterXML. All Rights Reserved.