org.kth.dks.dks_marshal
Class MarshalInterface

java.lang.Object
  extended by org.kth.dks.dks_marshal.MarshalInterface
Direct Known Subclasses:
MarshalBinary, MarshalXML

public abstract class MarshalInterface
extends java.lang.Object

Title: DKS

Description: DKS Middleware

Copyright: Copyright (c) 2005

Company: KTH-IMIT/SICS

Version:
1.0
Author:
Ali Ghodsi (aligh@kth.se)

Field Summary
protected  DKSMessage msg
           
 
Constructor Summary
MarshalInterface()
           
MarshalInterface(DKSMessage m)
           
 
Method Summary
abstract  void addBool(boolean val)
           
abstract  void addBool(boolean val, java.lang.String na)
           
abstract  void addByteArray(byte[] m)
           
abstract  void addByteArray(byte[] m, java.lang.String na)
           
abstract  void addDKSNetAddress(DKSNetAddress val)
           
abstract  void addDKSNetAddress(DKSNetAddress val, java.lang.String na)
           
abstract  void addDKSObject(DKSObject val)
           
abstract  void addDKSObject(DKSObject val, java.lang.String na)
           
abstract  void addDKSRef(DKSRef val)
           
abstract  void addDKSRef(DKSRef val, java.lang.String na)
           
abstract  void addDKSRefArray(DKSRef[] val)
           
abstract  void addDKSRefArray(DKSRef[] val, java.lang.String na)
           
abstract  void addInt(int val)
           
abstract  void addInt(int val, java.lang.String na)
           
abstract  void addLong(long val)
           
abstract  void addLong(long val, java.lang.String na)
           
abstract  void addString(java.lang.String val)
           
abstract  void addString(java.lang.String val, java.lang.String na)
           
abstract  byte[] flatten()
           
abstract  boolean remBool()
           
abstract  boolean remBool(java.lang.String na)
           
abstract  byte[] remByteArray()
           
abstract  byte[] remByteArray(java.lang.String na)
           
abstract  DKSNetAddress remDKSNetAddress()
           
abstract  DKSNetAddress remDKSNetAddress(java.lang.String na)
           
abstract  DKSObject remDKSObject()
           
abstract  DKSObject remDKSObject(java.lang.String na)
           
abstract  DKSRef remDKSRef()
           
abstract  DKSRef remDKSRef(java.lang.String na)
           
abstract  java.util.List remDKSRefArray()
           
abstract  java.util.List remDKSRefArray(java.lang.String na)
           
abstract  int remInt()
           
abstract  int remInt(java.lang.String na)
           
abstract  long remLong()
           
abstract  long remLong(java.lang.String na)
           
abstract  java.lang.String remString()
           
abstract  java.lang.String remString(java.lang.String na)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

msg

protected final DKSMessage msg
Constructor Detail

MarshalInterface

public MarshalInterface(DKSMessage m)

MarshalInterface

public MarshalInterface()
Method Detail

flatten

public abstract byte[] flatten()

addLong

public abstract void addLong(long val)
                      throws java.io.IOException
Throws:
java.io.IOException

addLong

public abstract void addLong(long val,
                             java.lang.String na)
                      throws java.io.IOException
Throws:
java.io.IOException

addInt

public abstract void addInt(int val)
                     throws java.io.IOException
Throws:
java.io.IOException

addInt

public abstract void addInt(int val,
                            java.lang.String na)
                     throws java.io.IOException
Throws:
java.io.IOException

addString

public abstract void addString(java.lang.String val)
                        throws java.io.IOException
Throws:
java.io.IOException

addString

public abstract void addString(java.lang.String val,
                               java.lang.String na)
                        throws java.io.IOException
Throws:
java.io.IOException

addBool

public abstract void addBool(boolean val)
                      throws java.io.IOException
Throws:
java.io.IOException

addBool

public abstract void addBool(boolean val,
                             java.lang.String na)
                      throws java.io.IOException
Throws:
java.io.IOException

addDKSObject

public abstract void addDKSObject(DKSObject val)
                           throws java.io.IOException
Throws:
java.io.IOException

addDKSObject

public abstract void addDKSObject(DKSObject val,
                                  java.lang.String na)
                           throws java.io.IOException
Throws:
java.io.IOException

addDKSRef

public abstract void addDKSRef(DKSRef val)
                        throws java.io.IOException
Throws:
java.io.IOException

addDKSRef

public abstract void addDKSRef(DKSRef val,
                               java.lang.String na)
                        throws java.io.IOException
Throws:
java.io.IOException

addDKSNetAddress

public abstract void addDKSNetAddress(DKSNetAddress val)
                               throws java.io.IOException
Throws:
java.io.IOException

addDKSNetAddress

public abstract void addDKSNetAddress(DKSNetAddress val,
                                      java.lang.String na)
                               throws java.io.IOException
Throws:
java.io.IOException

addDKSRefArray

public abstract void addDKSRefArray(DKSRef[] val)
                             throws java.io.IOException
Throws:
java.io.IOException

addDKSRefArray

public abstract void addDKSRefArray(DKSRef[] val,
                                    java.lang.String na)
                             throws java.io.IOException
Throws:
java.io.IOException

addByteArray

public abstract void addByteArray(byte[] m)
                           throws java.io.IOException
Throws:
java.io.IOException

addByteArray

public abstract void addByteArray(byte[] m,
                                  java.lang.String na)
                           throws java.io.IOException
Throws:
java.io.IOException

remString

public abstract java.lang.String remString()
                                    throws java.io.IOException
Throws:
java.io.IOException

remString

public abstract java.lang.String remString(java.lang.String na)
                                    throws java.io.IOException
Throws:
java.io.IOException

remLong

public abstract long remLong()
                      throws java.io.IOException
Throws:
java.io.IOException

remLong

public abstract long remLong(java.lang.String na)
                      throws java.io.IOException
Throws:
java.io.IOException

remInt

public abstract int remInt()
                    throws java.io.IOException
Throws:
java.io.IOException

remInt

public abstract int remInt(java.lang.String na)
                    throws java.io.IOException
Throws:
java.io.IOException

remBool

public abstract boolean remBool()
                         throws java.io.IOException
Throws:
java.io.IOException

remBool

public abstract boolean remBool(java.lang.String na)
                         throws java.io.IOException
Throws:
java.io.IOException

remDKSObject

public abstract DKSObject remDKSObject()
                                throws java.io.IOException
Throws:
java.io.IOException

remDKSObject

public abstract DKSObject remDKSObject(java.lang.String na)
                                throws java.io.IOException
Throws:
java.io.IOException

remDKSRef

public abstract DKSRef remDKSRef()
                          throws java.io.IOException
Throws:
java.io.IOException

remDKSRef

public abstract DKSRef remDKSRef(java.lang.String na)
                          throws java.io.IOException
Throws:
java.io.IOException

remDKSNetAddress

public abstract DKSNetAddress remDKSNetAddress()
                                        throws java.io.IOException
Throws:
java.io.IOException

remDKSNetAddress

public abstract DKSNetAddress remDKSNetAddress(java.lang.String na)
                                        throws java.io.IOException
Throws:
java.io.IOException

remDKSRefArray

public abstract java.util.List remDKSRefArray()
                                       throws java.io.IOException
Throws:
java.io.IOException

remDKSRefArray

public abstract java.util.List remDKSRefArray(java.lang.String na)
                                       throws java.io.IOException
Throws:
java.io.IOException

remByteArray

public abstract byte[] remByteArray()
                             throws java.io.IOException
Throws:
java.io.IOException

remByteArray

public abstract byte[] remByteArray(java.lang.String na)
                             throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.