Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

marauroa.net
Class InputSerializer  view InputSerializer download InputSerializer.java

java.lang.Object
  extended bymarauroa.net.InputSerializer

public class InputSerializer
extends java.lang.Object

InputSerializer is used to serialize classes that implement the Serializable interface from a InputStream.


Field Summary
private  java.io.InputStream in
           
 
Constructor Summary
InputSerializer(java.io.InputStream in)
          Constructor that pass the InputStream to the serializer
 
Method Summary
 byte readByte()
          This method read a byte from the Serializer
 byte[] readByteArray()
          This method read a byte array from the Serializer
 int readInt()
          This method read a int from the Serializer
 java.lang.Object readObject(Serializable obj)
          This method serialize an object that implements the interface Serializable allowing to implement this behaviour in several classes
 short readShort()
          This method read a short from the Serializer
 java.lang.String readString()
          This method read a String from the Serializer
 java.lang.String[] readStringArray()
          This method read a String array from the Serializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

private java.io.InputStream in
Constructor Detail

InputSerializer

public InputSerializer(java.io.InputStream in)
Constructor that pass the InputStream to the serializer

Method Detail

readObject

public java.lang.Object readObject(Serializable obj)
                            throws java.io.IOException,
                                   java.lang.ClassNotFoundException
This method serialize an object that implements the interface Serializable allowing to implement this behaviour in several classes


readByte

public byte readByte()
              throws java.io.IOException,
                     java.lang.ClassNotFoundException
This method read a byte from the Serializer


readByteArray

public byte[] readByteArray()
                     throws java.io.IOException,
                            java.lang.ClassNotFoundException
This method read a byte array from the Serializer


readShort

public short readShort()
                throws java.io.IOException,
                       java.lang.ClassNotFoundException
This method read a short from the Serializer


readInt

public int readInt()
            throws java.io.IOException,
                   java.lang.ClassNotFoundException
This method read a int from the Serializer


readString

public java.lang.String readString()
                            throws java.io.IOException,
                                   java.lang.ClassNotFoundException,
                                   java.io.UnsupportedEncodingException
This method read a String from the Serializer


readStringArray

public java.lang.String[] readStringArray()
                                   throws java.io.IOException,
                                          java.lang.ClassNotFoundException
This method read a String array from the Serializer