Joram 5.0.7

org.objectweb.joram.kclient
Class OutputXStream

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

public class OutputXStream
extends XStream


Field Summary
protected  byte[] buffer
           
protected  int count
           
 
Constructor Summary
OutputXStream()
           
 
Method Summary
 void reset()
           
protected  void resize(int len)
           
 int size()
           
 void toBuffer(byte[] buf)
           
 void writeBoolean(boolean b)
          This method allows to write a boolean to the buffered output stream.
protected  void writeBuffer(byte[] buf)
           
 void writeByte(byte b)
          This method allows to write a byte to the buffered output stream.
 void writeByteArray(byte[] tab)
          This method allows to write byte array to the buffered output stream.
 void writeDouble(double d)
          This method allows to write a double to the buffered output stream.
 void writeFloat(float f)
          This method allows to write a float to the buffered output stream.
 void writeInt(int i)
          This method allows to write an integer to the buffered output stream.
 void writeLong(long l)
          This method allows to write a long to the output stream.
 void writeObject(java.lang.Object obj)
          This method allows to write an object to the buffered output stream.
 void writeProperties(Properties p)
          This method allows to write a Properties object to the buffered output stream.
 void writeShort(short s)
          This method allows to write a short to the buffered output stream.
 void writeString(java.lang.String str)
          This method allows to write a String to the buffered output stream.
 void writeTo(java.io.OutputStream os)
           
 void writeVectorOfString(java.util.Vector v)
          This method allows to write a vector of String objects to the buffered output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

protected int count

buffer

protected byte[] buffer
Constructor Detail

OutputXStream

public OutputXStream()
Method Detail

resize

protected void resize(int len)

writeBuffer

protected void writeBuffer(byte[] buf)

reset

public void reset()

size

public int size()

writeTo

public void writeTo(java.io.OutputStream os)
             throws java.io.IOException
Throws:
java.io.IOException

toBuffer

public void toBuffer(byte[] buf)

writeBoolean

public void writeBoolean(boolean b)
This method allows to write a boolean to the buffered output stream.

Parameters:
b - the boolean to write

writeByte

public void writeByte(byte b)
This method allows to write a byte to the buffered output stream.

Parameters:
b - the byte to write

writeShort

public void writeShort(short s)
This method allows to write a short to the buffered output stream.

Parameters:
s - the short to write

writeInt

public void writeInt(int i)
This method allows to write an integer to the buffered output stream.

Parameters:
i - the integer to write

writeLong

public void writeLong(long l)
This method allows to write a long to the output stream.

Parameters:
l - the long to write

writeString

public void writeString(java.lang.String str)
This method allows to write a String to the buffered output stream.

Parameters:
str - the String to write

writeByteArray

public void writeByteArray(byte[] tab)
This method allows to write byte array to the buffered output stream.

Parameters:
tab - the byte array to write

writeFloat

public void writeFloat(float f)
This method allows to write a float to the buffered output stream.

Parameters:
f - the float to write

writeDouble

public void writeDouble(double d)
This method allows to write a double to the buffered output stream.

Parameters:
d - the double to write

writeObject

public void writeObject(java.lang.Object obj)
                 throws java.io.IOException
This method allows to write an object to the buffered output stream.

Parameters:
obj - the object to write
Throws:
java.io.IOException

writeVectorOfString

public void writeVectorOfString(java.util.Vector v)
This method allows to write a vector of String objects to the buffered output stream.

Parameters:
p - the Properties object to write
Throws:
a - ClassCastException if the vector contains non String object.

writeProperties

public void writeProperties(Properties p)
                     throws java.io.IOException
This method allows to write a Properties object to the buffered output stream.

Parameters:
p - the Properties object to write
Throws:
java.io.IOException

Joram 5.0.7

Copyright © 2005 Scalagent - All rights reserved