| java.lang.Object com.jclark.xml.tok.TextDecl
All known Subclasses: com.jclark.xml.tok.XmlDecl,
TextDecl | public class TextDecl (Code) | | An XML TextDecl.
version: $Revision: 1.4 $ $Date: 1998/12/30 02:42:01 $ |
Constructor Summary | |
public | TextDecl(Encoding enc, byte[] buf, int off, int end) Creates a TextDecl from the specified byte subarray. | | TextDecl() |
Method Summary | |
public String | getEncoding() Return the encoding specified in the declaration, or null
if no encoding was specified. | public String | getVersion() Return the version specified in the declaration, or null
if no version was specified. | boolean | init(boolean isXmlDecl, Encoding enc, byte[] buf, int off, int end) |
TextDecl | public TextDecl(Encoding enc, byte[] buf, int off, int end) throws InvalidTokenException(Code) | | Creates a TextDecl 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 TextDecl. |
getEncoding | public String getEncoding()(Code) | | Return the encoding specified in the declaration, or null
if no encoding was specified.
|
getVersion | public String getVersion()(Code) | | Return the version specified in the declaration, or null
if no version was specified.
|
|
|