org.iperg.part.core
Interface IpOutputStream

All Known Implementing Classes:
IpIoStream

public interface IpOutputStream

The IpOutputStream interface specifies methods for writing various types of data to a byte stream.

Version:
1.0.0 Initial version
Author:
Olov Stahl - olovs@sics.se

Method Summary
 void writeBoolean(boolean b)
          Writes a boolean into the output stream.
 void writeByte(byte b)
          Writes a byte into the output stream.
 void writeBytes(byte[] data)
          Write an array of bytes into the output stream
 void writeChar(char c)
          Writes a 16 bits char into the output stream.
 void writeDouble(double d)
          Writes a double into the output stream.
 void writeFloat(float f)
          Writes a float into the output stream.
 void writeInt(int i)
          Writes an integer into the output stream.
 void writeLong(long l)
          Writes a long into the output stream.
 void writeObject(java.lang.Object obj)
          Write an object into the marshaller.
 void writeShort(short s)
          Writes a short into the output stream.
 void writeString(java.lang.String s)
          Writes a string into the output stream.
 

Method Detail

writeByte

void writeByte(byte b)
Writes a byte into the output stream.

Parameters:
b - a byte
Throws:
java.io.IOException - if an io exception occurs while writing data to the stream

writeChar

void writeChar(char c)
Writes a 16 bits char into the output stream.

Parameters:
c - a char

writeBoolean

void writeBoolean(boolean b)
Writes a boolean into the output stream.

Parameters:
b - a boolean

writeShort

void writeShort(short s)
Writes a short into the output stream.

Parameters:
s - a short
Throws:
java.io.IOException - if an io exception occurs while writing data to the stream

writeInt

void writeInt(int i)
Writes an integer into the output stream.

Parameters:
i - an integer

writeLong

void writeLong(long l)
Writes a long into the output stream.

Parameters:
l - a long

writeFloat

void writeFloat(float f)
                throws java.io.IOException
Writes a float into the output stream.

Parameters:
f - a float
Throws:
java.io.IOException - if an io exception occurs while writing data to the stream

writeDouble

void writeDouble(double d)
                 throws java.io.IOException
Writes a double into the output stream.

Parameters:
d - a double
Throws:
java.io.IOException - if an io exception occurs while writing data to the stream

writeString

void writeString(java.lang.String s)
Writes a string into the output stream.

Parameters:
s - a string

writeBytes

void writeBytes(byte[] data)
Write an array of bytes into the output stream

Parameters:
data - The array to write into the marshaller

writeObject

void writeObject(java.lang.Object obj)
                 throws java.io.IOException
Write an object into the marshaller. The object must implement the IpSerializable interface.

Parameters:
obj - The object to write into the marshaller
Throws:
java.io.IOException - if an io exception occurs while writing the object to the stream