Package com.ibm.di.parser
Class SimpleParser
- java.lang.Object
-
- com.ibm.di.parser.ParserImpl
-
- com.ibm.di.parser.SimpleParser
-
- All Implemented Interfaces:
ParserInterface
,VersionInfoInterface
public class SimpleParser extends ParserImpl
A class reading and writing dsEntries in a simple one-line-per-attribute format.
-
-
Field Summary
-
Fields inherited from class com.ibm.di.parser.ParserImpl
_debug, myConfiguration
-
-
Constructor Summary
Constructors Constructor Description SimpleParser()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getVersion()
Version information.Entry
readEntry()
Reads the next entry from the input stream.void
writeEntry(Entry entry)
Write an entry to the current output stream.-
Methods inherited from class com.ibm.di.parser.ParserImpl
closeParser, debug, debugMode, flush, getClassInstance, getContext, getDebug, getInputStream, getOutputStream, getParam, getParser, getReader, getWriter, initParser, isDeltaSupported, logmsg, querySchema, registerScriptBeans, setConfiguration, setContext, setDebug, setInputStream, setInputStream, setInputStream, setOutputStream, setOutputStream, setParam, setParser
-
-
-
-
Method Detail
-
readEntry
public Entry readEntry() throws java.io.IOException
Reads the next entry from the input stream. If end of stream encountered a null value is returned.- Returns:
- the next Entry in the input stream.
- Throws:
java.io.IOException
- See Also:
IOException
-
writeEntry
public void writeEntry(Entry entry) throws java.io.IOException
Write an entry to the current output stream.- Parameters:
entry
- The entry to write- Throws:
java.io.IOException
- if an I/O error occurs.
-
getVersion
public java.lang.String getVersion()
Version information.- Returns:
- version information
-
-