org.kth.dks.dks_marshal
Class MarshalBinary

java.lang.Object
  extended by org.kth.dks.dks_marshal.MarshalInterface
      extended by 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)

Field Summary
 
Fields inherited from class org.kth.dks.dks_marshal.MarshalInterface
msg
 
Constructor Summary
MarshalBinary(DKSMessage m)
           
 
Method Summary
 void addBool(boolean val)
           
 void addBool(boolean val, java.lang.String na)
           
 void addByteArray(byte[] m)
           
 void addByteArray(byte[] m, java.lang.String na)
           
 void addDKSNetAddress(DKSNetAddress val)
           
 void addDKSNetAddress(DKSNetAddress val, java.lang.String na)
           
 void addDKSObject(DKSObject val)
           
 void addDKSObject(DKSObject val, java.lang.String na)
           
 void addDKSOverlayAddress(DKSOverlayAddress val)
           
 void addDKSRef(DKSRef val)
           
 void addDKSRef(DKSRef val, java.lang.String na)
           
 void addDKSRefArray(DKSRef[] val)
           
 void addDKSRefArray(DKSRef[] val, java.lang.String na)
           
 void addInt(int val)
           
 void addInt(int val, java.lang.String na)
           
 void addLong(long val)
           
 void addLong(long val, java.lang.String na)
           
 void addString(java.lang.String val)
           
 void addString(java.lang.String val, java.lang.String na)
           
 byte[] flatten()
           
 boolean remBool()
           
 boolean remBool(java.lang.String na)
           
 byte[] remByteArray()
           
 byte[] remByteArray(java.lang.String na)
           
 DKSNetAddress remDKSNetAddress()
           
 DKSNetAddress remDKSNetAddress(java.lang.String na)
           
 DKSObject remDKSObject()
           
 DKSObject remDKSObject(java.lang.String na)
           
 DKSOverlayAddress remDKSOverlayAddress()
           
 DKSRef remDKSRef()
           
 DKSRef remDKSRef(java.lang.String na)
           
 java.util.List remDKSRefArray()
           
 java.util.List remDKSRefArray(java.lang.String na)
           
 int remInt()
           
 int remInt(java.lang.String na)
           
 long remLong()
           
 long remLong(java.lang.String na)
           
 java.lang.String remString()
           
 java.lang.String remString(java.lang.String na)
           
static DKSMessage unflatten(byte[] raw)
           
 void unflatten(java.io.DataInputStream raw)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarshalBinary

public MarshalBinary(DKSMessage m)
Method Detail

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.