Joram 5.0.9

org.objectweb.joram.kclient
Class InputXStream

java.lang.Object
  extended by org.objectweb.joram.kclient.XStream
      extended by org.objectweb.joram.kclient.InputXStream

public class InputXStream
extends XStream


Field Summary
protected  byte[] buffer
           
protected  int count
           
protected  int pos
           
 
Constructor Summary
InputXStream()
           
 
Method Summary
protected  void check(int len)
           
protected  void read(java.io.InputStream is, int len)
           
 boolean readBoolean()
          This method allows to restore a boolean from the input stream.
 byte readByte()
          This method allows to restore a byte from the input stream.
 byte[] readByteArray()
          This method allows to restore a byte array from the input stream.
 double readDouble()
          This method allows to restore a double from the input stream.
 float readFloat()
          This method allows to restore a float from the input stream.
 void readFrom(java.io.InputStream is)
           
 int readInt()
          This method allows to restore an integer from the input stream.
 long readLong()
          This method allows to restore a long from the input stream.
 java.lang.Object readObject()
          This method allows to restore an object from the input stream.
 Properties readProperties()
          This method allows to restore a Properties object from the input stream.
 short readShort()
          This method allows to restore a short from the input stream.
 java.lang.String readString()
          This method allows to restore a String from the input stream.
 java.util.Vector readVectorOfString()
          This method allows to restore a vector of String objects from the input stream.
 void reset()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected byte[] buffer

count

protected int count

pos

protected int pos
Constructor Detail

InputXStream

public InputXStream()
Method Detail

read

protected void read(java.io.InputStream is,
                    int len)
             throws java.io.IOException
Throws:
java.io.IOException

readFrom

public void readFrom(java.io.InputStream is)
              throws java.io.IOException
Throws:
java.io.IOException

reset

public void reset()

size

public int size()

check

protected void check(int len)
              throws java.io.EOFException
Throws:
java.io.EOFException

readByte

public byte readByte()
              throws java.io.EOFException
This method allows to restore a byte from the input stream.

Returns:
the byte
Throws:
java.io.EOFException

readBoolean

public boolean readBoolean()
                    throws java.io.EOFException
This method allows to restore a boolean from the input stream.

Returns:
the boolean
Throws:
java.io.EOFException

readShort

public short readShort()
                throws java.io.EOFException
This method allows to restore a short from the input stream.

Returns:
the short
Throws:
java.io.EOFException

readInt

public int readInt()
            throws java.io.EOFException
This method allows to restore an integer from the input stream.

Returns:
the integer
Throws:
java.io.EOFException

readLong

public long readLong()
              throws java.io.EOFException
This method allows to restore a long from the input stream.

Returns:
the long
Throws:
java.io.EOFException

readString

public java.lang.String readString()
                            throws java.io.IOException
This method allows to restore a String from the input stream.

Returns:
the String object or null
Throws:
java.io.IOException

readByteArray

public byte[] readByteArray()
                     throws java.io.IOException
This method allows to restore a byte array from the input stream.

Returns:
the byte array object or null
Throws:
java.io.IOException

readFloat

public float readFloat()
                throws java.io.EOFException
This method allows to restore a float from the input stream.

Returns:
the float
Throws:
java.io.EOFException

readDouble

public double readDouble()
                  throws java.io.EOFException
This method allows to restore a double from the input stream.

Parameters:
is - the stream to read data from in order to restore the object
Returns:
the double
Throws:
java.io.EOFException

readObject

public java.lang.Object readObject()
                            throws java.io.IOException
This method allows to restore an object from the input stream.

Returns:
the object or null
Throws:
java.io.IOException

readProperties

public Properties readProperties()
                          throws java.io.IOException
This method allows to restore a Properties object from the input stream.

Returns:
the Properties object or null
Throws:
java.io.IOException

readVectorOfString

public java.util.Vector readVectorOfString()
                                    throws java.io.IOException
This method allows to restore a vector of String objects from the input stream.

Returns:
the Properties object or null
Throws:
java.io.IOException

Joram 5.0.9

Copyright © 2005 Scalagent - All rights reserved