com.ionetrics.lib.annotatorcomm
Class ResponseReader

java.lang.Object
  extended by com.ionetrics.lib.annotatorcomm.ResponseReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Runnable

public class ResponseReader
extends java.lang.Object
implements java.io.Closeable, java.lang.Runnable

The Annotator Communication Response Reader reads and dispatches ResponseMessages from an Annotator's InputStream. The dispatch targets are the ResponseMessageQueue and the Annotator's TimestampListeners.


Constructor Summary
ResponseReader(AnnotatorComm annotator, java.io.InputStream in)
          Construct a ResponseReader.
 
Method Summary
 void close()
          Close the ResponseReader.
 void run()
          Read and dispatch ResponseMessages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseReader

public ResponseReader(AnnotatorComm annotator,
                      java.io.InputStream in)
Construct a ResponseReader.

Parameters:
annotator - parent Annotator
in - parent Annotator's InputStream
Method Detail

close

public void close()
           throws java.io.IOException
Close the ResponseReader.

Specified by:
close in interface java.io.Closeable
Throws:
java.io.IOException - failure to close

run

public void run()
Read and dispatch ResponseMessages.

Specified by:
run in interface java.lang.Runnable


Copyright © 2006 Ionetrics Corp. All Rights Reserved.