Framework Professional Edition Package


com.prosyst.util.io
Class PDataStream

java.lang.Object
  extended by com.prosyst.util.io.PDataStream

public final class PDataStream
extends java.lang.Object


Constructor Summary
PDataStream()
           
 
Method Summary
static boolean readBoolean(java.io.InputStream is)
          reads a boolean from the InputStream
static byte readByte(java.io.InputStream is)
          reads a byte from the InputStream
static char readChar(java.io.InputStream is)
          reads a char from the InputStream
static double readDouble(java.io.InputStream is)
          reads a double from the InputStream
static float readFloat(java.io.InputStream is)
          reads a float from the InputStream
static int readInt(java.io.InputStream is)
          reads an int from the InputStream
static long readLong(java.io.InputStream is)
          reads a long from the InputStream
static short readShort(java.io.InputStream is)
          reads a short from the InputStream
static java.lang.String readString(java.io.InputStream is)
          reads a String from the underling InputStream
static int readUnsignedByte(java.io.InputStream is)
           
static java.lang.String readUTF(java.io.InputStream is)
          reads a String from the InputStream
static void writeBoolean(boolean b, java.io.OutputStream os)
          writes a boolean in the OutputStream
static void writeByte(byte b, java.io.OutputStream os)
          writes a byte in the OutputStream
static void writeBytes(java.lang.String s, java.io.OutputStream os)
          writes a String in the OutputStream
static void writeChar(char c, java.io.OutputStream os)
          writes a char in the OutputStream
static void writeChars(java.lang.String s, java.io.OutputStream os)
          writes a String in the OutputStream
static void writeDouble(double d, java.io.OutputStream os)
          writes a double in the OutputStream
static void writeFloat(float f, java.io.OutputStream os)
          writes a float in the OutputStream
static void writeInt(int i, java.io.OutputStream os)
          writes an int in the OutputStream
static void writeLong(long l, java.io.OutputStream os)
          writes a long in the OutputStream
static void writeShort(short s, java.io.OutputStream os)
          writes a short in the OutputStream
static void writeString(java.lang.String s, java.io.OutputStream os)
          writes a String in the OutputStream
static void writeUTF(java.lang.String s, java.io.OutputStream os)
          writes a String in the OutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDataStream

public PDataStream()
Method Detail

writeInt

public static void writeInt(int i,
                            java.io.OutputStream os)
                     throws java.io.IOException
writes an int in the OutputStream

Throws:
java.io.IOException

writeLong

public static void writeLong(long l,
                             java.io.OutputStream os)
                      throws java.io.IOException
writes a long in the OutputStream

Throws:
java.io.IOException

writeShort

public static void writeShort(short s,
                              java.io.OutputStream os)
                       throws java.io.IOException
writes a short in the OutputStream

Throws:
java.io.IOException

writeChar

public static void writeChar(char c,
                             java.io.OutputStream os)
                      throws java.io.IOException
writes a char in the OutputStream

Throws:
java.io.IOException

writeBoolean

public static void writeBoolean(boolean b,
                                java.io.OutputStream os)
                         throws java.io.IOException
writes a boolean in the OutputStream

Throws:
java.io.IOException

writeByte

public static void writeByte(byte b,
                             java.io.OutputStream os)
                      throws java.io.IOException
writes a byte in the OutputStream

Throws:
java.io.IOException

writeBytes

public static void writeBytes(java.lang.String s,
                              java.io.OutputStream os)
                       throws java.io.IOException
writes a String in the OutputStream

Throws:
java.io.IOException

writeString

public static void writeString(java.lang.String s,
                               java.io.OutputStream os)
                        throws java.io.IOException
writes a String in the OutputStream

Throws:
java.io.IOException

writeUTF

public static void writeUTF(java.lang.String s,
                            java.io.OutputStream os)
                     throws java.io.IOException
writes a String in the OutputStream

Throws:
java.io.IOException

writeChars

public static void writeChars(java.lang.String s,
                              java.io.OutputStream os)
                       throws java.io.IOException
writes a String in the OutputStream

Throws:
java.io.IOException

writeDouble

public static void writeDouble(double d,
                               java.io.OutputStream os)
                        throws java.io.IOException
writes a double in the OutputStream

Throws:
java.io.IOException

writeFloat

public static void writeFloat(float f,
                              java.io.OutputStream os)
                       throws java.io.IOException
writes a float in the OutputStream

Throws:
java.io.IOException

readInt

public static int readInt(java.io.InputStream is)
                   throws java.io.IOException
reads an int from the InputStream

Throws:
java.io.IOException

readChar

public static char readChar(java.io.InputStream is)
                     throws java.io.IOException
reads a char from the InputStream

Throws:
java.io.IOException

readShort

public static short readShort(java.io.InputStream is)
                       throws java.io.IOException
reads a short from the InputStream

Throws:
java.io.IOException

readLong

public static long readLong(java.io.InputStream is)
                     throws java.io.IOException
reads a long from the InputStream

Throws:
java.io.IOException

readBoolean

public static boolean readBoolean(java.io.InputStream is)
                           throws java.io.IOException
reads a boolean from the InputStream

Throws:
java.io.IOException

readByte

public static byte readByte(java.io.InputStream is)
                     throws java.io.IOException
reads a byte from the InputStream

Throws:
java.io.IOException

readUnsignedByte

public static int readUnsignedByte(java.io.InputStream is)
                            throws java.io.IOException
Throws:
java.io.IOException

readDouble

public static double readDouble(java.io.InputStream is)
                         throws java.io.IOException
reads a double from the InputStream

Throws:
java.io.IOException

readFloat

public static float readFloat(java.io.InputStream is)
                       throws java.io.IOException
reads a float from the InputStream

Throws:
java.io.IOException

readString

public static java.lang.String readString(java.io.InputStream is)
                                   throws java.io.IOException
reads a String from the underling InputStream

Throws:
java.io.IOException

readUTF

public static java.lang.String readUTF(java.io.InputStream is)
                                throws java.io.IOException
reads a String from the InputStream

Throws:
java.io.IOException

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved