CGDocument - Oracle 9i

Syntax:

Description:

Serves as the base document class for the DTD compiler generated classes

Constructors

CGDocument():

protected CGDocument()

CGDocument(String, DTD):

protected CGDocument(java.lang.String doctype, oracle.xml.parser.v2.DTD dtd)

Constructor for the Root element of the DTD

Parameters

doctype - Name of the root Element of the DTD dtd - The DTD used to generate the classes

Methods

print(OutputStream):

protected void print(java.io.OutputStream out)

Prints the constructed XML Document

Parameters

out -Output stream to which the document will be printed

Throws

InvalidContentException - Throw exception if the document's content do not match the grammer specified by DTD (The validation mode should be set to TRUE)

See Also:

oracle.xml.classgen.ClassGenerator

print(OutputStream, String):

protected void print(java.io.OutputStream out,java.lang.String enc)

Prints the constructed XML Document

Parameters

out - Output stream to which the document will be printed enc - Encoding of the output stream

Throws

InvalidContentException - Throw exception if the document's content do not match the grammer specified by DTD (The validation mode should be set to TRUE)

See Also:

oracle.xml.classgen.ClassGenerator

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Oracle 9i Topics