File: Locator.java

package info (click to toggle)
lib-xp-java 0.5-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,652 kB
  • ctags: 2,424
  • sloc: java: 8,085; makefile: 53; sh: 17; xml: 7
file content (29 lines) | stat: -rw-r--r-- 1,003 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.jclark.xml.sax;

import java.net.URL;

/**
 * An extension of org.xml.sax.Locator.
 * @version $Revision: 1.1 $ $Date: 1998/05/28 05:58:07 $
 */
interface Locator extends org.xml.sax.Locator {
  /**
   * Returns the URL for the current document event or null if
   * none is available.
   * This is the URL that should be used as the base URL for
   * resolving relative URLs in the document event.
   * This corresponds to the URL returned by <code>getEntityBase</code>
   * in com.jclark.xml.parse.ParseLocation.
   * The <code>getSystemId</code> method corresponds
   * to <code>getEntityLocation</code>.
   * @see com.jclark.xml.parse.ParseLocation#getEntityBase
   * @see com.jclark.xml.parse.ParseLocation#getEntityLocation
   */
  URL getURL();
  /**
   * Returns the byte index of the first byte of the first character
   * of the document event, or -1 if no byte index is available.
   * The index of the first byte is 0.
   */
  long getByteIndex();
}