Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## convert.xml.tok
Class TextDecl

    java.lang.Object
      convert.xml.tok.TextDecl

    public class TextDecl

extends java.lang.Object

An XML TextDecl.

Constructor Summary
`TextDecl(char[] buf, int off, int end)` Creates a `TextDecl` from the specified char subarray.

Method Summary
`java.lang.String` | `getEncoding()` Return the encoding specified in the declaration, or null if no encoding was specified.
`java.lang.String` | `getVersion()` Return the version specified in the declaration, or null if no version was specified.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TextDecl

    public TextDecl(char[] buf,
                    int off,
                    int end)
             throws InvalidTokenException

  Creates a `TextDecl` from the specified char subarray. The char subarray should be a `TOK_XML_DECL` token 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.

Method Detail

### getEncoding

    public java.lang.String getEncoding()

  Return the encoding specified in the declaration, or null if no encoding was specified.

### getVersion

    public java.lang.String getVersion()

  Return the version specified in the declaration, or null if no version was specified.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD