Top Fields Constructors Methods
com.sun.xml.fastinfoset.stax

public Class EventLocation

extends Object
implements Location
Class Inheritance
All Implemented Interfaces
javax.xml.stream.Location
Imports
javax.xml.stream.Location

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
pack-priv int
pack-priv String
pack-priv String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the current offset
getCharacterOffset
()

Implements javax.xml.stream.Location.getCharacterOffset.

Return the byte or character offset into the input source this location is pointing to.

public int

Returns:

the current column number
getColumnNumber
()

Implements javax.xml.stream.Location.getColumnNumber.

Return the column number where the current event ends, returns -1 if none is available.

public int

Returns:

the current line number
getLineNumber
()

Implements javax.xml.stream.Location.getLineNumber.

Return the line number where the current event ends, returns -1 if none is available.

public static Location
public String

Returns:

the public ID, or null if not available
getPublicId
()

Implements javax.xml.stream.Location.getPublicId.

Returns the public ID of the XML

public String

Returns:

the system ID, or null if not available
getSystemId
()

Implements javax.xml.stream.Location.getSystemId.

Returns the system ID of the XML

public void
setCharacterOffset(int offset)

public void
setColumnNumber(int col)

public void
setLineNumber(int line)

public void
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_charOffsetback to summary
pack-priv int _charOffset
_columnback to summary
pack-priv int _column
_lineback to summary
pack-priv int _line
_publicIdback to summary
pack-priv String _publicId
_systemIdback to summary
pack-priv String _systemId

Constructor Detail

EventLocationback to summary
pack-priv EventLocation()

Method Detail

getCharacterOffsetback to summary
public int getCharacterOffset()

Implements javax.xml.stream.Location.getCharacterOffset.

Return the byte or character offset into the input source this location is pointing to. If the input source is a file or a byte stream then this is the byte offset into that stream, but if the input source is a character media then the offset is the character offset. Returns -1 if there is no offset available.

Returns:int

the current offset

Annotations
@Override
getColumnNumberback to summary
public int getColumnNumber()

Implements javax.xml.stream.Location.getColumnNumber.

Return the column number where the current event ends, returns -1 if none is available.

Returns:int

the current column number

Annotations
@Override
getLineNumberback to summary
public int getLineNumber()

Implements javax.xml.stream.Location.getLineNumber.

Return the line number where the current event ends, returns -1 if none is available.

Returns:int

the current line number

Annotations
@Override
getNilLocationback to summary
public static Location getNilLocation()
getPublicIdback to summary
public String getPublicId()

Implements javax.xml.stream.Location.getPublicId.

Returns the public ID of the XML

Returns:String

the public ID, or null if not available

Annotations
@Override
getSystemIdback to summary
public String getSystemId()

Implements javax.xml.stream.Location.getSystemId.

Returns the system ID of the XML

Returns:String

the system ID, or null if not available

Annotations
@Override
setCharacterOffsetback to summary
public void setCharacterOffset(int offset)
setColumnNumberback to summary
public void setColumnNumber(int col)
setLineNumberback to summary
public void setLineNumber(int line)
setPublicIdback to summary
public void setPublicId(String id)
setSystemIdback to summary
public void setSystemId(String id)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override