com.ibm.di.parser
Class SimpleParser

java.lang.Object
  extended by com.ibm.di.parser.ParserImpl
      extended by 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
SimpleParser()
          Default constructor.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleParser

public SimpleParser()
Default constructor.

Method Detail

readEntry

public Entry readEntry()
                throws 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:
IOException
See Also:
IOException

writeEntry

public void writeEntry(Entry entry)
                throws IOException
Write an entry to the current output stream.

Parameters:
entry - The entry to write
Throws:
IOException - if an I/O error occurs.

getVersion

public String getVersion()
Version information.

Returns:
version information