All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.xml.parser.Parser
java.lang.Object
|
+----com.ibm.xml.parser.Parser
- public class Parser
- extends Object
- Version:
- 19980206
-
Parser(String)
- Make parser instance with default ErrorListener and StreamProducer.
-
Parser(String, ErrorListener, StreamProducer)
- Make parser instance with specified ErrorListener and StreamProducer.
-
addElementHandler(ElementHandler)
- Add ElementHandler for all Element.
-
addElementHandler(ElementHandler, String)
- Add ElementHandler for specified Element.
-
addNoRequiredAttributeHandler(NoRequiredAttributeHandler)
- Add NoRequiredAttributeHandler.
-
addPIHandler(PIHandler)
- Add PIHandler.
-
addPreRootHandler(PreRootHandler)
- Add PreRootHandler.
-
getInputStream(String)
- Create InputStream by StreamProducer.
-
getInputStream(String, String, String)
- Create InputStream by StreamProducer.
-
getNumberOfErrors()
- Get a number of errors.
-
readDTDStream(InputStream)
- Make DTD instance from InputStream.
-
readStream(InputStream)
- Parse.
-
setAllowJavaEncodingName(boolean)
- Set if the parser recognizes not only MIME charsets but also Java encoding names.
-
setDebugPrintName(boolean)
- Print parsing Name token to standard-error.
-
setElementFactory(ElementFactory)
- Set ElementFactory.
-
setErrorNoByteMark(boolean)
- Set if the parser treats an input without byte order mark as error.
-
setKeepComment(boolean)
- Set if the parser make Comment instance.
-
setPreserveSpace(boolean)
- Set if the parser preserves spaces in texts.
-
setProcessNamespace(boolean)
- Enable namespace feature.
-
setStartTagHandler(StartTagHandler)
-
-
setWarningNoDoctypeDecl(boolean)
- Set if the parser warns the document has no `
<!DOCTYPE ...>
'.
-
setWarningNoXMLDecl(boolean)
- Set if the parser warns the document has no `
<?XML ...?>
'.
-
setWarningRedefinedEntity(boolean)
- Set if the parser warns redefinition of entity.
Parser
public Parser(String fname)
- Make parser instance with default ErrorListener and StreamProducer.
Parser
public Parser(String fname,
ErrorListener el,
StreamProducer sp)
- Make parser instance with specified ErrorListener and StreamProducer.
- Parameters:
- el - You can specify null when you use default ErrorListener.
- sp - You can specify null when you use default StreamProducer.
setElementFactory
public void setElementFactory(ElementFactory ef)
- Set ElementFactory.
getInputStream
public InputStream getInputStream(String name,
String pubid,
String sysid) throws IOException
- Create InputStream by StreamProducer.
- See Also:
- getInputStream
getInputStream
public InputStream getInputStream(String name) throws IOException
- Create InputStream by StreamProducer.
- Parameters:
- name - URL string
- See Also:
- getInputStream
setStartTagHandler
public void setStartTagHandler(StartTagHandler sth)
addPreRootHandler
public void addPreRootHandler(PreRootHandler prh)
- Add PreRootHandler.
addPIHandler
public void addPIHandler(PIHandler ph)
- Add PIHandler.
- See Also:
- PIHandler
addElementHandler
public void addElementHandler(ElementHandler eh)
- Add ElementHandler for all Element.
- See Also:
- ElementHandler
addElementHandler
public void addElementHandler(ElementHandler eh,
String ename)
- Add ElementHandler for specified Element.
- See Also:
- ElementHandler
addNoRequiredAttributeHandler
public void addNoRequiredAttributeHandler(NoRequiredAttributeHandler nrah)
- Add NoRequiredAttributeHandler.
Handlers are called when an element has no `
#REQUIRED
' attribute.
- See Also:
- handleNoRequiredAttribute
getNumberOfErrors
public int getNumberOfErrors()
- Get a number of errors.
setKeepComment
public void setKeepComment(boolean f)
- Set if the parser make Comment instance.
Default is false.
setProcessNamespace
public void setProcessNamespace(boolean f)
- Enable namespace feature.
setErrorNoByteMark
public void setErrorNoByteMark(boolean f)
- Set if the parser treats an input without byte order mark as error.
Default is true.
setAllowJavaEncodingName
public void setAllowJavaEncodingName(boolean f)
- Set if the parser recognizes not only MIME charsets but also Java encoding names.
Default is false.
setPreserveSpace
public void setPreserveSpace(boolean f)
- Set if the parser preserves spaces in texts.
Default is false.
setWarningRedefinedEntity
public void setWarningRedefinedEntity(boolean f)
- Set if the parser warns redefinition of entity.
Default is true.
setWarningNoXMLDecl
public void setWarningNoXMLDecl(boolean f)
- Set if the parser warns the document has no `
<?XML ...?>
'.
setWarningNoDoctypeDecl
public void setWarningNoDoctypeDecl(boolean f)
- Set if the parser warns the document has no `
<!DOCTYPE ...>
'.
setDebugPrintName
public void setDebugPrintName(boolean f)
- Print parsing Name token to standard-error.
readStream
public TXDocument readStream(InputStream is)
- Parse.
readDTDStream
public DTD readDTDStream(InputStream is) throws IOException
- Make DTD instance from InputStream.
This DTD is `External subset'.
All Packages Class Hierarchy This Package Previous Next Index