FileDocCategorySizeDatePackage
LocatorWrapper.javaAPI DocJava SE 6 API4212Tue Jun 10 00:22:50 BST 2008com.sun.org.apache.xerces.internal.util

LocatorWrapper

public class LocatorWrapper extends Object implements XMLLocator
Wraps SAX {@link Locator} into Xerces {@link XMLLocator}.
author
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)

Fields Summary
private final Locator
locator
Constructors Summary
public LocatorWrapper(Locator _loc)

 this.locator=_loc; 
Methods Summary
public java.lang.StringgetBaseSystemId()

 return null; 
public intgetCharacterOffset()

Returns the character offset, or -1, if no character offset is available.

As this information is not available from {@link org.xml.sax.Locator}, always return -1.

    	return -1;
    
public intgetColumnNumber()

 return locator.getColumnNumber(); 
public java.lang.StringgetEncoding()

 return null; 
public java.lang.StringgetExpandedSystemId()

 return locator.getSystemId(); 
public intgetLineNumber()

 return locator.getLineNumber(); 
public java.lang.StringgetLiteralSystemId()

 return locator.getSystemId(); 
public java.lang.StringgetPublicId()

 return locator.getPublicId(); 
public java.lang.StringgetXMLVersion()

Returns the XML version of the current entity.

As this information is not available from {@link org.xml.sax.Locator}, always return null.

    	return null;