All Packages Class Hierarchy This Package Previous Next Index
Class com.jclark.xml.tok.XmlDecl
java.lang.Object
|
+----com.jclark.xml.tok.TextDecl
|
+----com.jclark.xml.tok.XmlDecl
- public class XmlDecl
- extends TextDecl
An XML declaration.
-
XmlDecl(Encoding, byte[], int, int)
- Creates an
XMLDecl from the specified byte subarray.
-
isStandalone()
- Returns true if the XML declaration specified
standalone="yes".
XmlDecl
public XmlDecl(Encoding enc,
byte buf[],
int off,
int end) throws InvalidTokenException
- 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 ?>.
- Throws: InvalidTokenException
- if the specified byte subarray
is not a legal XML declaration.
isStandalone
public boolean isStandalone()
- Returns true if the XML declaration specified
standalone="yes".
All Packages Class Hierarchy This Package Previous Next Index