|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addResolver(org.xml.sax.EntityResolver resolver)
Adds an EntityResolver through which this Builder
should try to resolve entities before letting the default handling
do it's job. |
Component |
build(org.xml.sax.InputSource in)
Initiates building of the objects by reading the specified InputSource .
|
Component |
build(InputStream in)
Initiates building of the objects by reading the specified InputStream .
|
void |
setLoggingStream(PrintWriter logStream)
Specifies the stream to which warnings, errors, fatal errors and elements should be reported. |
void |
setQuiet(boolean quiet)
Initiates or terminates quiet mode. |
void |
setVerbose(boolean verbose)
Makes the Builder more verbose than normal. |
Methods inherited from interface org.xml.sax.ContentHandler |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
Methods inherited from interface jgb.builder.WindowContext |
getObject |
Method Detail |
public void setQuiet(boolean quiet)
When in quiet mode, the Builder will not report any messages to the logging stream. By default, the Builder is NOT quiet.
This attribute is mutually exclusive with verbose.
quiet
- true
to make the Builder quiet,
false
otherwise.public void setVerbose(boolean verbose)
If the Builder is verbose, it should log all start and end elements to the logging stream.
This attribute is mutually exclusive with quiet.
verbose
- true
to make the Builder verbose,
false
otherwise.public Component build(InputStream in) throws IOException, org.xml.sax.SAXException
InputStream
.
This stream will be parsed as an XML file. The parser used to parse
the file will be validating.
org.xml.sax.SAXException
- If a parser could not be instantiated, or a build
error occurs.
IOException
- If an I/O error occurs while reading the stream.
IllegalArgumentException
- If the input stream is
null
.public Component build(org.xml.sax.InputSource in) throws IOException, org.xml.sax.SAXException
InputSource
.
The parser used to parse the source will be validating.
org.xml.sax.SAXException
- If a parser could not be instantiated, or a build
error occurs.
IOException
- If an I/O error occurs while reading the stream.
IllegalArgumentException
- If the input source is
null
.public void setLoggingStream(PrintWriter logStream)
logStream
- The stream to which information will be sent.public void addResolver(org.xml.sax.EntityResolver resolver)
EntityResolver
through which this Builder
should try to resolve entities before letting the default handling
do it's job.
resolver
- An EntityResolver
that will be
used while building the window.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |