org.kde.koala
Class Marchaller

java.lang.Object
  extended by org.kde.koala.Marchaller

public class Marchaller
extends java.lang.Object

This marchaller can convert between serialized Qt objects and Java objects. (Scooped the code of Stub.java from the javadcop project, and made the operations static and public)


Constructor Summary
Marchaller()
           
 
Method Summary
static boolean read_bool(java.io.DataInputStream is)
           
static double read_double(java.io.DataInputStream is)
           
static float read_float(java.io.DataInputStream is)
           
static int read_int(java.io.DataInputStream is)
           
static int read_long_int(java.io.DataInputStream is)
           
static java.lang.String read_QCString(java.io.DataInputStream is)
           
static java.lang.String read_QString(java.io.DataInputStream is)
           
static java.lang.String[] read_QStringList(java.io.DataInputStream is)
           
static short read_short_int(java.io.DataInputStream is)
           
static void write_bool(java.io.DataOutputStream os, boolean val)
           
static void write_double(java.io.DataOutputStream os, double val)
           
static void write_float(java.io.DataOutputStream os, float val)
           
static void write_int(java.io.DataOutputStream os, int val)
           
static void write_long_int(java.io.DataOutputStream os, int val)
           
static void write_QByteArray(java.io.DataOutputStream os, byte[] byteArray)
           
static void write_QCString(java.io.DataOutputStream os, java.lang.String val)
           
static void write_QString(java.io.DataOutputStream os, java.lang.String val)
           
static void write_QStringList(java.io.DataOutputStream os, java.lang.String[] val)
           
static void write_short_int(java.io.DataOutputStream os, short val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Marchaller

public Marchaller()
Method Detail

read_bool

public static boolean read_bool(java.io.DataInputStream is)
                         throws java.io.IOException
Throws:
java.io.IOException

write_bool

public static void write_bool(java.io.DataOutputStream os,
                              boolean val)
                       throws java.io.IOException
Throws:
java.io.IOException

read_short_int

public static short read_short_int(java.io.DataInputStream is)
                            throws java.io.IOException
Throws:
java.io.IOException

write_short_int

public static void write_short_int(java.io.DataOutputStream os,
                                   short val)
                            throws java.io.IOException
Throws:
java.io.IOException

read_int

public static int read_int(java.io.DataInputStream is)
                    throws java.io.IOException
Throws:
java.io.IOException

write_int

public static void write_int(java.io.DataOutputStream os,
                             int val)
                      throws java.io.IOException
Throws:
java.io.IOException

read_long_int

public static int read_long_int(java.io.DataInputStream is)
                         throws java.io.IOException
Throws:
java.io.IOException

write_long_int

public static void write_long_int(java.io.DataOutputStream os,
                                  int val)
                           throws java.io.IOException
Throws:
java.io.IOException

read_float

public static float read_float(java.io.DataInputStream is)
                        throws java.io.IOException
Throws:
java.io.IOException

write_float

public static void write_float(java.io.DataOutputStream os,
                               float val)
                        throws java.io.IOException
Throws:
java.io.IOException

read_double

public static double read_double(java.io.DataInputStream is)
                          throws java.io.IOException
Throws:
java.io.IOException

write_double

public static void write_double(java.io.DataOutputStream os,
                                double val)
                         throws java.io.IOException
Throws:
java.io.IOException

read_QString

public static java.lang.String read_QString(java.io.DataInputStream is)
                                     throws java.io.IOException
Throws:
java.io.IOException

write_QString

public static void write_QString(java.io.DataOutputStream os,
                                 java.lang.String val)
                          throws java.io.IOException
Throws:
java.io.IOException

read_QCString

public static java.lang.String read_QCString(java.io.DataInputStream is)
                                      throws java.io.IOException
Throws:
java.io.IOException

write_QCString

public static void write_QCString(java.io.DataOutputStream os,
                                  java.lang.String val)
                           throws java.io.IOException
Throws:
java.io.IOException

read_QStringList

public static java.lang.String[] read_QStringList(java.io.DataInputStream is)
                                           throws java.io.IOException
Throws:
java.io.IOException

write_QStringList

public static void write_QStringList(java.io.DataOutputStream os,
                                     java.lang.String[] val)
                              throws java.io.IOException
Throws:
java.io.IOException

write_QByteArray

public static void write_QByteArray(java.io.DataOutputStream os,
                                    byte[] byteArray)
                             throws java.io.IOException
Throws:
java.io.IOException