gov.lanl.HL7
Class HL7SourceParser

java.lang.Object
  |
  +--gov.lanl.HL7.HL7SourceParser
All Implemented Interfaces:
java.util.Iterator

public class HL7SourceParser
extends java.lang.Object
implements java.util.Iterator

Reader for entire HL7 Data stream. It is used to sequentially return the messages in the data stream through an iterator

 

Constructor Summary
HL7SourceParser()
          Creates new HL7SourceParser
HL7SourceParser(java.lang.String uri)
          Constructor for HL7SourceParser
 
Method Summary
 void finalize()
          close the file reader
 java.lang.String getNextMessage()
          * get next Message from HL7 data stream
 boolean hasNext()
          Determine if there are any more lines in the message
 java.lang.Object next()
          return next message
 void remove()
          * remove element from iterator (not supported in this Iterator)
 void setDebug(boolean debug)
          Turn on/off debuggin
 void setInput(java.lang.String uri)
          Define Input file
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HL7SourceParser

public HL7SourceParser()
Creates new HL7SourceParser


HL7SourceParser

public HL7SourceParser(java.lang.String uri)
Constructor for HL7SourceParser

Method Detail

setDebug

public void setDebug(boolean debug)
Turn on/off debuggin

Parameters:
debug -

setInput

public void setInput(java.lang.String uri)
Define Input file

Parameters:
uri - of input file

remove

public void remove()
* remove element from iterator (not supported in this Iterator)

Specified by:
remove in interface java.util.Iterator

hasNext

public boolean hasNext()
Determine if there are any more lines in the message

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
return next message

Specified by:
next in interface java.util.Iterator

getNextMessage

public java.lang.String getNextMessage()
* get next Message from HL7 data stream


finalize

public void finalize()
close the file reader

Overrides:
finalize in class java.lang.Object