|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.parser.ParserImpl
com.ibm.di.parser.xml.XMLParser2
com.ibm.di.parser.CBEParser
public class CBEParser
A class that reads and writes CBE objects in XML format.
Field Summary |
---|
Fields inherited from class com.ibm.di.parser.xml.XMLParser2 |
---|
attrsDeclaration, charEncoding, coalescing, currentEntryAsXML, currentEntryAsXMLString, DEFAULT_ENCODING, DUMMY_ROOT_NAME, entryTag, firstWriteStart, indentOutput, nsMap, nsTracker, skipXMLOnReading, skipXMLOnWriting, standaloneRoot, valueTag, wrapUnwrapEntry, xmlVersion, xPath, xPathStr, xsdPath |
Fields inherited from class com.ibm.di.parser.ParserImpl |
---|
_debug, myConfiguration |
Constructor Summary | |
---|---|
CBEParser()
Default constructor. |
Method Summary | |
---|---|
void |
closeParser()
This method closes the parser's streams |
String |
getVersion()
Version information. |
void |
initInput()
Initializes the Input. |
void |
initOutput()
Initialize and prepare the outputStream and prepare the outputDoc. |
Object |
querySchema(Object source)
This Parser does not support dynamic schema discovery and uses the default Query Schema implementation. |
Entry |
readEntry()
Reads the inputStream and fill the Entry Object that it returns |
void |
writeEntry(Entry entry)
Create/get the CBE object and convert it to XML. |
Methods inherited from class com.ibm.di.parser.xml.XMLParser2 |
---|
getCurrentEntryAsXMLStream, getCurrentEntryAsXMLString, getCurrentEntryPath, getLogger, getSchemaLocationFromXML, initParser |
Methods inherited from class com.ibm.di.parser.ParserImpl |
---|
debug, debugMode, flush, getClassInstance, getContext, getDebug, getInputStream, getOutputStream, getParam, getParser, getReader, getWriter, isDeltaSupported, logmsg, registerScriptBeans, setConfiguration, setContext, setDebug, setInputStream, setInputStream, setInputStream, setOutputStream, setOutputStream, setParam, setParser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.di.parser.ParserInterface |
---|
flush, getContext, getDebug, getParam, getParser, getReader, getWriter, isDeltaSupported, registerScriptBeans, setConfiguration, setContext, setDebug, setInputStream, setInputStream, setInputStream, setOutputStream, setOutputStream, setParam, setParser |
Constructor Detail |
---|
public CBEParser()
Method Detail |
---|
public void initInput() throws Exception
initInput
in class XMLParser2
Exception
- - in case of a read error occurs.ParserImpl.setInputStream(java.io.Reader)
public Entry readEntry() throws Exception
readEntry
in interface ParserInterface
readEntry
in class XMLParser2
Exception
- public void initOutput() throws Exception
initOutput
in class XMLParser2
Exception
- if an error occurs.public void writeEntry(Entry entry) throws Exception
writeEntry
in interface ParserInterface
writeEntry
in class XMLParser2
entry
- -
The entry that is going to be written to the outputStream as
XML
Exception
- -
in the following cases:
public void closeParser() throws Exception
closeParser
in interface ParserInterface
closeParser
in class XMLParser2
Exception
- in case an error occurspublic String getVersion()
getVersion
in interface VersionInfoInterface
getVersion
in class XMLParser2
public Object querySchema(Object source)
querySchema
in interface ParserInterface
querySchema
in class XMLParser2
source
- The object on which to discover schema
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |