thinkmap.datasource.stream
Class BinaryStreamReader

java.lang.Object
  extended by thinkmap.datasource.stream.BinaryStreamReader
All Implemented Interfaces:
IStreamReader

public class BinaryStreamReader
extends Object
implements IStreamReader

This class implements the reading portion of the binary stream format for Thinkmap. This class does not have any member variables and may be shared safely between threads.

Version:
$Revision: 1.6 $

Constructor Summary
BinaryStreamReader()
           
 
Method Summary
protected  void panic(String errorStr)
           
protected  Object readArray(DataInputStream in)
           
protected  void readHeader(DataInput in)
           
 void readMessage(InputStream stream, IEntityHandler callback)
          Read from an input stream and convert the input into calls on the provided callback.
protected  Object readValue(DataInputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryStreamReader

public BinaryStreamReader()
Method Detail

readMessage

public void readMessage(InputStream stream,
                        IEntityHandler callback)
                 throws IOException
Description copied from interface: IStreamReader
Read from an input stream and convert the input into calls on the provided callback.

Specified by:
readMessage in interface IStreamReader
Parameters:
stream - the input stream to read from
callback - the IEntityHandler to callback
Throws:
IOException

readValue

protected Object readValue(DataInputStream in)
                    throws IOException
Throws:
IOException

readArray

protected Object readArray(DataInputStream in)
                    throws IOException
Throws:
IOException

readHeader

protected void readHeader(DataInput in)
                   throws IOException
Throws:
IOException

panic

protected void panic(String errorStr)
              throws IOException
Throws:
IOException


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.