LocatorImpl


LocatorImpl org.xml.sax.helpers

Java 1.4

This helper class is a very simple implementation of the Locator interface. It defines a copy constructor that create a new LocatorImpl object that copies the state of a specified Locator object. This constructor is useful because it allows applications to copy the state of a Locator and save it for later use.

Figure 22-16. org.xml.sax.helpers.LocatorImpl

 public class  LocatorImpl  implements org.xml.sax.Locator {  // Public Constructors  public  LocatorImpl  ( );        public  LocatorImpl  (org.xml.sax.Locator  locator  );  // Public Instance Methods  public void  setColumnNumber  (int  columnNumber  );        public void  setLineNumber  (int  lineNumber  );        public void  setPublicId  (String  publicId  );        public void  setSystemId  (String  systemId  );  // Methods Implementing Locator  public int  getColumnNumber  ( );  default:0  public int  getLineNumber  ( );  default:0  public String  getPublicId  ( );  default:null  public String  getSystemId  ( );  default:null  } 

Subclasses

org.xml.sax.ext.Locator2Impl



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net