Package com.ibm.di.parser
Class JSONParser
- java.lang.Object
-
- com.ibm.di.parser.ParserImpl
-
- com.ibm.di.parser.JSONParser
-
- All Implemented Interfaces:
ParserInterface,VersionInfoInterface
public class JSONParser extends ParserImpl
-
-
Field Summary
-
Fields inherited from class com.ibm.di.parser.ParserImpl
_debug, myConfiguration
-
-
Constructor Summary
Constructors Constructor Description JSONParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseParser()Close parser and deallocate resources.java.lang.StringgetVersion()Version information.voidinitParser()Perform initialization of parser.EntryreadEntry()Return the next entry from the current input stream.voidwriteEntry(Entry entry)Write an entry to the current output stream.-
Methods inherited from class com.ibm.di.parser.ParserImpl
debug, debugMode, flush, getClassInstance, getContext, getDebug, getInputStream, getOutputStream, getParam, getParser, getReader, getWriter, isDeltaSupported, logmsg, querySchema, registerScriptBeans, setConfiguration, setContext, setDebug, setInputStream, setInputStream, setInputStream, setOutputStream, setOutputStream, setParam, setParser
-
-
-
-
Method Detail
-
initParser
public void initParser() throws java.lang.ExceptionDescription copied from class:ParserImplPerform initialization of parser.- Specified by:
initParserin interfaceParserInterface- Overrides:
initParserin classParserImpl- Throws:
java.lang.Exception- if an error occurs.
-
readEntry
public Entry readEntry() throws java.lang.Exception
Description copied from interface:ParserInterfaceReturn the next entry from the current input stream.- Returns:
- The next entry from the input stream
- Throws:
java.lang.Exception
-
writeEntry
public void writeEntry(Entry entry) throws java.lang.Exception
Description copied from interface:ParserInterfaceWrite an entry to the current output stream.- Parameters:
entry- The entry to write- Throws:
java.lang.Exception- if an error occurs.
-
getVersion
public java.lang.String getVersion()
Description copied from interface:VersionInfoInterfaceVersion information.- Returns:
- version information
-
closeParser
public void closeParser() throws java.lang.ExceptionDescription copied from class:ParserImplClose parser and deallocate resources. This method closes the input and output streams.- Specified by:
closeParserin interfaceParserInterface- Overrides:
closeParserin classParserImpl- Throws:
java.lang.Exception- if an error occurs.
-
-