Visit Platform at http://www.platform.com

Platform Symphony 4.1 Java API Reference

com.platform.symphony.soam
Interface OutputStream


public interface OutputStream

Used by a Message object for writing, i.e. serializing.

An OutputStream can write the following basic types of data:

See Also:
Message

Method Summary
 void writeBoolean(boolean b)
          Writes a boolean value to the output stream.
 void writeByteArray(byte[] buffer, int offset, int length)
          Writes length bytes to the output stream from the given byte array, starting from position offset in the array.
 void writeChar(char c)
          Writes a char value to the output stream.
 void writeDouble(double d)
          Writes a double value to the output stream.
 void writeFloat(float f)
          Writes a float value to the output stream.
 void writeInt(int i)
          Writes an int value to the output stream.
 void writeLong(long l)
          Writes a long value to the output stream.
 void writeShort(short s)
          Writes a short value to the output stream.
 void writeString(java.lang.String str)
          Writes a java.lang.String to the output stream.
 

Method Detail

writeShort

void writeShort(short s)
                throws SoamException
Writes a short value to the output stream.

Parameters:
s - The short to be written to the output stream.
Throws:
SoamException

writeInt

void writeInt(int i)
              throws SoamException
Writes an int value to the output stream.

Parameters:
i - The integer to be written to the output stream.
Throws:
SoamException

writeLong

void writeLong(long l)
               throws SoamException
Writes a long value to the output stream.

Parameters:
l - The long integer to be written to the output stream.
Throws:
SoamException

writeFloat

void writeFloat(float f)
                throws SoamException
Writes a float value to the output stream.

Parameters:
f - The floating point number to be written to the output stream.
Throws:
SoamException

writeDouble

void writeDouble(double d)
                 throws SoamException
Writes a double value to the output stream.

Parameters:
d - The long floating point number to be written to the output stream.
Throws:
SoamException

writeBoolean

void writeBoolean(boolean b)
                  throws SoamException
Writes a boolean value to the output stream.

Parameters:
b - The boolean value to be written to the output stream.
Throws:
SoamException

writeChar

void writeChar(char c)
               throws SoamException
Writes a char value to the output stream.

Parameters:
c - The character to be written to the output stream.
Throws:
SoamException

writeString

void writeString(java.lang.String str)
                 throws SoamException
Writes a java.lang.String to the output stream.

Parameters:
str - The string to be written to the output stream.
Throws:
SoamException

writeByteArray

void writeByteArray(byte[] buffer,
                    int offset,
                    int length)
                    throws SoamException
Writes length bytes to the output stream from the given byte array, starting from position offset in the array.

Parameters:
buffer - The byte array to be written to the output stream.
offset - The position in the byte array from which to start writing.
length - The number of bytes to write.
Throws:
SoamException

Version 4.1
Date Modified: -DREL_DATE=Nov 03 2008
Platform Computing. Accelerating Intelligence(TM).
Copyright (C) 2001-2008 Platform Computing Corporation. All rights reserved.