jlibs.xml.stream
Class STAXLocator

java.lang.Object
  extended by jlibs.xml.stream.STAXLocator
All Implemented Interfaces:
Locator2, Locator

public class STAXLocator
extends Object
implements Locator2

SAX Locator2 implementation for XMLStreamReader.

Author:
Santhosh Kumar T

Constructor Summary
STAXLocator(XMLStreamReader reader)
           
 
Method Summary
 int getColumnNumber()
           
 String getEncoding()
           
 int getLineNumber()
           
 String getPublicId()
           
 String getSystemId()
           
 String getXMLVersion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

STAXLocator

public STAXLocator(XMLStreamReader reader)
Method Detail

getPublicId

public String getPublicId()
Specified by:
getPublicId in interface Locator

getSystemId

public String getSystemId()
Specified by:
getSystemId in interface Locator

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface Locator

getColumnNumber

public int getColumnNumber()
Specified by:
getColumnNumber in interface Locator

getXMLVersion

public String getXMLVersion()
Specified by:
getXMLVersion in interface Locator2

getEncoding

public String getEncoding()
Specified by:
getEncoding in interface Locator2


Copyright © 2015. All rights reserved.