jaron.simpleserialization
Class SerializationInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.ByteArrayInputStream
          extended by jaron.simpleserialization.SerializationInputStream
All Implemented Interfaces:
java.io.Closeable

public class SerializationInputStream
extends java.io.ByteArrayInputStream

The SerializationInputStream class implements the functionality to convert simple data types like integers, floats and strings into serilized data.

Since:
1.0
Version:
1.0
Author:
jarontec gmail com

Constructor Summary
SerializationInputStream(byte[] buffer)
           
SerializationInputStream(byte[] buf, int offset, int length)
           
 
Method Summary
 float readFloat()
           
 int readInteger()
           
 java.lang.String readString()
           
 
Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.io.InputStream
read
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializationInputStream

public SerializationInputStream(byte[] buffer)

SerializationInputStream

public SerializationInputStream(byte[] buf,
                                int offset,
                                int length)
Method Detail

readInteger

public int readInteger()

readFloat

public float readFloat()

readString

public java.lang.String readString()