public final class EmptyLocation
extends java.lang.Object
implements javax.xml.stream.Location
Location which always returns -1
and null
from its methods.
Modifier and Type | Method and Description |
---|---|
int |
getCharacterOffset()
Return the byte or character offset into the input source this location
is pointing to.
|
int |
getColumnNumber()
Return the column number where the current event ends,
returns -1 if none is available.
|
static EmptyLocation |
getInstance()
Returns the one and only instance of this class.
|
int |
getLineNumber()
Return the line number where the current event ends,
returns -1 if none is available.
|
java.lang.String |
getPublicId()
Returns the public ID of the XML
|
java.lang.String |
getSystemId()
Returns the system ID of the XML
|
public static EmptyLocation getInstance()
public int getLineNumber()
getLineNumber
in interface javax.xml.stream.Location
public int getColumnNumber()
getColumnNumber
in interface javax.xml.stream.Location
public int getCharacterOffset()
getCharacterOffset
in interface javax.xml.stream.Location
public java.lang.String getPublicId()
getPublicId
in interface javax.xml.stream.Location
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.stream.Location
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.