Skip to Content
Java in a Nutshell, 5th Edition
book

Java in a Nutshell, 5th Edition

by David Flanagan
March 2005
Intermediate to advanced
1254 pages
104h 21m
English
O'Reilly Media, Inc.
Content preview from Java in a Nutshell, 5th Edition

Name

LocatorImpl

Synopsis

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.

org.xml.sax.helpers.LocatorImpl

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java in a Nutshell, 8th Edition

Java in a Nutshell, 8th Edition

Benjamin J. Evans, Jason Clark, David Flanagan
Java in a Nutshell, 7th Edition

Java in a Nutshell, 7th Edition

Benjamin J. Evans, David Flanagan
Learning Java, 5th Edition

Learning Java, 5th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
Learning Java, 4th Edition

Learning Java, 4th Edition

Patrick Niemeyer, Daniel Leuck

Publisher Resources

ISBN: 0596007736Supplemental ContentErrata Page