Package com.thaiopensource.xml.tok
Class TextDecl
- java.lang.Object
-
- com.thaiopensource.xml.tok.TextDecl
-
public class TextDecl extends java.lang.ObjectAn XML TextDecl.
-
-
Constructor Summary
Constructors Constructor Description TextDecl(char[] buf, int off, int end)Creates aTextDeclfrom the specified char subarray.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEncoding()Return the encoding specified in the declaration, or null if no encoding was specified.java.lang.StringgetVersion()Return the version specified in the declaration, or null if no version was specified.
-
-
-
Constructor Detail
-
TextDecl
public TextDecl(char[] buf, int off, int end) throws InvalidTokenExceptionCreates aTextDeclfrom the specified char subarray. The char subarray should be aTOK_XML_DECLtoken returned from Tokenizer.tokenizeProlog or Tokenizer.tokenizeContent, starting with<?and ending with?>.- Throws:
InvalidTokenException- if the specified char subarray is not a legal XML TextDecl.
-
-