org.kth.dks.dks_marshal
Class MarshalBinary
java.lang.Object
org.kth.dks.dks_marshal.MarshalInterface
org.kth.dks.dks_marshal.MarshalBinary
public class MarshalBinary
- extends MarshalInterface
Title: DKS
Description: DKS Middleware
Copyright: Copyright (c) 2005
Company: KTH-IMIT/SICS
- Version:
- 1.0
- Author:
- Ali Ghodsi (aligh@kth.se)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarshalBinary
public MarshalBinary(DKSMessage m)
flatten
public byte[] flatten()
- Specified by:
flatten in class MarshalInterface
unflatten
public void unflatten(java.io.DataInputStream raw)
unflatten
public static DKSMessage unflatten(byte[] raw)
addLong
public final void addLong(long val)
throws java.io.IOException
- Specified by:
addLong in class MarshalInterface
- Throws:
java.io.IOException
addLong
public final void addLong(long val,
java.lang.String na)
throws java.io.IOException
- Specified by:
addLong in class MarshalInterface
- Throws:
java.io.IOException
addInt
public final void addInt(int val)
throws java.io.IOException
- Specified by:
addInt in class MarshalInterface
- Throws:
java.io.IOException
addInt
public final void addInt(int val,
java.lang.String na)
throws java.io.IOException
- Specified by:
addInt in class MarshalInterface
- Throws:
java.io.IOException
addString
public final void addString(java.lang.String val)
throws java.io.IOException
- Specified by:
addString in class MarshalInterface
- Throws:
java.io.IOException
addString
public final void addString(java.lang.String val,
java.lang.String na)
throws java.io.IOException
- Specified by:
addString in class MarshalInterface
- Throws:
java.io.IOException
addBool
public final void addBool(boolean val)
throws java.io.IOException
- Specified by:
addBool in class MarshalInterface
- Throws:
java.io.IOException
addBool
public final void addBool(boolean val,
java.lang.String na)
throws java.io.IOException
- Specified by:
addBool in class MarshalInterface
- Throws:
java.io.IOException
addDKSObject
public final void addDKSObject(DKSObject val)
throws java.io.IOException
- Specified by:
addDKSObject in class MarshalInterface
- Throws:
java.io.IOException
addDKSObject
public final void addDKSObject(DKSObject val,
java.lang.String na)
throws java.io.IOException
- Specified by:
addDKSObject in class MarshalInterface
- Throws:
java.io.IOException
addDKSRef
public final void addDKSRef(DKSRef val)
throws java.io.IOException
- Specified by:
addDKSRef in class MarshalInterface
- Throws:
java.io.IOException
addDKSRef
public final void addDKSRef(DKSRef val,
java.lang.String na)
throws java.io.IOException
- Specified by:
addDKSRef in class MarshalInterface
- Throws:
java.io.IOException
addDKSNetAddress
public final void addDKSNetAddress(DKSNetAddress val)
throws java.io.IOException
- Specified by:
addDKSNetAddress in class MarshalInterface
- Throws:
java.io.IOException
addDKSNetAddress
public final void addDKSNetAddress(DKSNetAddress val,
java.lang.String na)
throws java.io.IOException
- Specified by:
addDKSNetAddress in class MarshalInterface
- Throws:
java.io.IOException
addDKSOverlayAddress
public final void addDKSOverlayAddress(DKSOverlayAddress val)
throws java.io.IOException
- Throws:
java.io.IOException
addDKSRefArray
public final void addDKSRefArray(DKSRef[] val)
throws java.io.IOException
- Specified by:
addDKSRefArray in class MarshalInterface
- Throws:
java.io.IOException
addDKSRefArray
public final void addDKSRefArray(DKSRef[] val,
java.lang.String na)
throws java.io.IOException
- Specified by:
addDKSRefArray in class MarshalInterface
- Throws:
java.io.IOException
addByteArray
public final void addByteArray(byte[] m)
throws java.io.IOException
- Specified by:
addByteArray in class MarshalInterface
- Throws:
java.io.IOException
addByteArray
public final void addByteArray(byte[] m,
java.lang.String na)
throws java.io.IOException
- Specified by:
addByteArray in class MarshalInterface
- Throws:
java.io.IOException
remString
public final java.lang.String remString()
throws java.io.IOException
- Specified by:
remString in class MarshalInterface
- Throws:
java.io.IOException
remString
public final java.lang.String remString(java.lang.String na)
throws java.io.IOException
- Specified by:
remString in class MarshalInterface
- Throws:
java.io.IOException
remLong
public final long remLong()
throws java.io.IOException
- Specified by:
remLong in class MarshalInterface
- Throws:
java.io.IOException
remLong
public final long remLong(java.lang.String na)
throws java.io.IOException
- Specified by:
remLong in class MarshalInterface
- Throws:
java.io.IOException
remInt
public final int remInt()
throws java.io.IOException
- Specified by:
remInt in class MarshalInterface
- Throws:
java.io.IOException
remInt
public final int remInt(java.lang.String na)
throws java.io.IOException
- Specified by:
remInt in class MarshalInterface
- Throws:
java.io.IOException
remBool
public final boolean remBool()
throws java.io.IOException
- Specified by:
remBool in class MarshalInterface
- Throws:
java.io.IOException
remBool
public final boolean remBool(java.lang.String na)
throws java.io.IOException
- Specified by:
remBool in class MarshalInterface
- Throws:
java.io.IOException
remDKSObject
public final DKSObject remDKSObject()
throws java.io.IOException
- Specified by:
remDKSObject in class MarshalInterface
- Throws:
java.io.IOException
remDKSObject
public final DKSObject remDKSObject(java.lang.String na)
throws java.io.IOException
- Specified by:
remDKSObject in class MarshalInterface
- Throws:
java.io.IOException
remDKSRef
public final DKSRef remDKSRef()
throws java.io.IOException
- Specified by:
remDKSRef in class MarshalInterface
- Throws:
java.io.IOException
remDKSRef
public final DKSRef remDKSRef(java.lang.String na)
throws java.io.IOException
- Specified by:
remDKSRef in class MarshalInterface
- Throws:
java.io.IOException
remDKSNetAddress
public final DKSNetAddress remDKSNetAddress()
throws java.io.IOException
- Specified by:
remDKSNetAddress in class MarshalInterface
- Throws:
java.io.IOException
remDKSNetAddress
public final DKSNetAddress remDKSNetAddress(java.lang.String na)
throws java.io.IOException
- Specified by:
remDKSNetAddress in class MarshalInterface
- Throws:
java.io.IOException
remDKSOverlayAddress
public final DKSOverlayAddress remDKSOverlayAddress()
throws java.io.IOException
- Throws:
java.io.IOException
remDKSRefArray
public final java.util.List remDKSRefArray()
throws java.io.IOException
- Specified by:
remDKSRefArray in class MarshalInterface
- Throws:
java.io.IOException
remDKSRefArray
public final java.util.List remDKSRefArray(java.lang.String na)
throws java.io.IOException
- Specified by:
remDKSRefArray in class MarshalInterface
- Throws:
java.io.IOException
remByteArray
public final byte[] remByteArray()
throws java.io.IOException
- Specified by:
remByteArray in class MarshalInterface
- Throws:
java.io.IOException
remByteArray
public final byte[] remByteArray(java.lang.String na)
throws java.io.IOException
- Specified by:
remByteArray in class MarshalInterface
- Throws:
java.io.IOException
Copyright © 2010. All Rights Reserved.