| java.lang.Object com.jclark.xml.tok.TextDecl com.jclark.xml.tok.XmlDecl
XmlDecl | public class XmlDecl extends TextDecl (Code) | | An XML declaration.
version: $Revision: 1.3 $ $Date: 1998/02/17 04:24:35 $ |
Constructor Summary | |
public | XmlDecl(Encoding enc, byte[] buf, int off, int end) Creates an XMLDecl from the specified byte subarray. |
Method Summary | |
public boolean | isStandalone() Returns true if the XML declaration specified
standalone="yes" . |
XmlDecl | public XmlDecl(Encoding enc, byte[] buf, int off, int end) throws InvalidTokenException(Code) | | Creates an XMLDecl from the specified byte subarray.
The specified encoding is used to convert bytes to characters.
The byte subarray should be a TOK_XML_DECL token
returned from Encoding.tokenizeProlog or Encoding.tokenizeContent,
starting with <? and ending with ?> .
exception: InvalidTokenException - if the specified byte subarrayis not a legal XML declaration. |
isStandalone | public boolean isStandalone()(Code) | | Returns true if the XML declaration specified
standalone="yes" .
|
|
|