com.sun.msv.scanner.dtd
public class DTDParser extends Object
Version: $Id: DTDParser.java,v 1.10 2005/04/25 17:31:43 kohsuke Exp $
| Field Summary | |
|---|---|
| static String | TYPE_CDATA |
| static String | TYPE_ENTITIES |
| static String | TYPE_ENTITY |
| static String | TYPE_ENUMERATION |
| static String | TYPE_ID |
| static String | TYPE_IDREF |
| static String | TYPE_IDREFS |
| static String | TYPE_NMTOKEN |
| static String | TYPE_NMTOKENS |
| static String | TYPE_NOTATION |
| Method Summary | |
|---|---|
| Locale | chooseLocale(String[] languages)
Chooses a client locale to use for diagnostics, using the first
language specified in the list that is supported by this parser.
|
| int | getColumnNumber() |
| DTDEventListener | getDtdHandler()
Returns the handler used to for DTD parsing events. |
| EntityResolver | getEntityResolver()
Returns the object used to resolve entities |
| int | getLineNumber() |
| Locale | getLocale()
Returns the diagnostic locale. |
| String | getPublicId() |
| String | getSystemId() |
| void | parse(InputSource in)
Parse a DTD. |
| void | parse(String uri)
Parse a DTD. |
| void | setDtdHandler(DTDEventListener handler)
Used by applications to set handling of DTD parsing events. |
| void | setEntityResolver(EntityResolver r)
Lets applications control entity resolution. |
| void | setLocale(Locale l)
Used by applications to request locale for diagnostics.
|
Parameters: languages Array of language specifiers, ordered with the most preferable one at the front. For example, "en-ca" then "fr-ca", followed by "zh_CN". Both RFC 1766 and Java styles are supported.
Returns: The chosen locale, or null.
Parameters: l The locale to use, or null to use system defaults (which may include only message IDs).