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.


Constructor Index

 o XmlDecl(Encoding, byte[], int, int)
Creates an XMLDecl from the specified byte subarray.

Method Index

 o isStandalone()
Returns true if the XML declaration specified standalone="yes".

Constructors

 o 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.

Methods

 o isStandalone
 public boolean isStandalone()
Returns true if the XML declaration specified standalone="yes".


All Packages  Class Hierarchy  This Package  Previous  Next  Index