|
||||||||||
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.LineReader
public class LineReader
The Line Reader Parser reads single lines of data. The line read is returned in a single attribute. There is also an attribute named linenumber that contains the line number, starting with 1.
Field Summary |
---|
Fields inherited from class com.ibm.di.parser.ParserImpl |
---|
_debug, myConfiguration |
Constructor Summary | |
---|---|
LineReader()
|
Method Summary | |
---|---|
java.lang.String |
getVersion()
Version information. |
void |
initParser()
This method is called by the hosting component (e.g. |
java.lang.Object |
querySchema(java.lang.Object source)
Discover the schema for the Parser. |
Entry |
readEntry()
Return the next entry from the current 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, 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 |
Constructor Detail |
---|
public LineReader()
Method Detail |
---|
public void initParser() throws java.lang.Exception
initParser
in interface ParserInterface
initParser
in class ParserImpl
java.lang.Exception
- :
neverpublic void writeEntry(Entry entry) throws java.lang.Exception
entry
- The entry to write
java.lang.Exception
- if an I/O error occurs.public Entry readEntry() throws java.lang.Exception
java.lang.Exception
- if error occurs.public java.lang.Object querySchema(java.lang.Object source) throws java.lang.Exception
querySchema
in interface ParserInterface
querySchema
in class ParserImpl
source
- The object on which to discover schema
java.lang.Exception
- If an I/O error occurspublic java.lang.String getVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |