thinkmap.datasource.stream
Interface IStreamReader

All Known Implementing Classes:
BinaryStreamReader

public interface IStreamReader

This interface should be implemented by classes that form the reading side of a StreamFormat. A StreamReader reads an InputStream and converts the input into calls to an IEntityHandler.

Version:
$Revision: 1.2 $

Method Summary
 void readMessage(InputStream in, IEntityHandler callback)
          Read from an input stream and convert the input into calls on the provided callback.
 

Method Detail

readMessage

void readMessage(InputStream in,
                 IEntityHandler callback)
                 throws IOException
Read from an input stream and convert the input into calls on the provided callback.

Parameters:
in - the input stream to read from
callback - the IEntityHandler to callback
Throws:
IOException


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.