CTL.Serialize
Class SerialOut
java.lang.Object
CTL.Streams.DataOutputStream2
CTL.Serialize.SerialOut
- All Implemented Interfaces:
- java.io.DataOutput
- Direct Known Subclasses:
- CTLOut, OOStream
public abstract class SerialOut
- extends DataOutputStream2
Constructor Summary |
SerialOut(java.io.OutputStream out)
|
Method Summary |
abstract
|
__writeArray(T data)
|
void |
serialWrite(java.lang.Object data)
Write an object to the stream (if one of the above function applies
better to the data given, the relevant function will be called
automagically. |
abstract
|
writeArray(T data)
|
protected abstract void |
writeData(java.lang.Object data)
|
abstract void |
writeObject(java.lang.Object data)
|
abstract void |
writeString(java.lang.String data)
|
abstract void |
writeWString(java.lang.String data)
|
Methods inherited from class CTL.Streams.DataOutputStream2 |
close, flush, write, write, write, writeBoolean, writeByte, writeByte, writeBytes, writeChar, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeShort, writeUTF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerialOut
public SerialOut(java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
writeString
public abstract void writeString(java.lang.String data)
throws java.io.IOException
- Throws:
java.io.IOException
writeWString
public abstract void writeWString(java.lang.String data)
throws java.io.IOException
- Throws:
java.io.IOException
writeArray
public abstract <T> void writeArray(T data)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
__writeArray
public abstract <T> void __writeArray(T data)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
writeObject
public abstract void writeObject(java.lang.Object data)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
CTLException
- Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException
writeData
protected abstract void writeData(java.lang.Object data)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
CTLException
- Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException
serialWrite
public void serialWrite(java.lang.Object data)
throws java.io.IOException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
CTLException
- Write an object to the stream (if one of the above function applies
better to the data given, the relevant function will be called
automagically.
- Parameters:
data
- Value
- Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException