01: package com.jclark.xml.sax;
02:
03: import java.net.URL;
04:
05: /**
06: * An extension of org.xml.sax.Locator.
07: * @version $Revision: 1.1 $ $Date: 1998/05/28 05:58:07 $
08: */
09: interface Locator extends org.xml.sax.Locator {
10: /**
11: * Returns the URL for the current document event or null if
12: * none is available.
13: * This is the URL that should be used as the base URL for
14: * resolving relative URLs in the document event.
15: * This corresponds to the URL returned by <code>getEntityBase</code>
16: * in com.jclark.xml.parse.ParseLocation.
17: * The <code>getSystemId</code> method corresponds
18: * to <code>getEntityLocation</code>.
19: * @see com.jclark.xml.parse.ParseLocation#getEntityBase
20: * @see com.jclark.xml.parse.ParseLocation#getEntityLocation
21: */
22: URL getURL();
23:
24: /**
25: * Returns the byte index of the first byte of the first character
26: * of the document event, or -1 if no byte index is available.
27: * The index of the first byte is 0.
28: */
29: long getByteIndex();
30: }
|