thinkmap.datasource.stream
Class BinaryStreamReader
java.lang.Object
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 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryStreamReader
public BinaryStreamReader()
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 fromcallback - 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.