JACK 5.4 JACOB Application Interface

aos.apib
Class SetStream

java.lang.Object
  extended byaos.apib.BaseStream
      extended byaos.apib.InStream
          extended byaos.apib.SetStream

public class SetStream
extends InStream

The SetStream class is a utility that provides generic access to JACOB objects, i.e., to assign the field values through "JACOB reflection". An instance of SetStream is created, and accesible via the static member SetStream.instance.

See Also:
Serialized Form

Field Summary
static SetStream instance
          Holds the common SetStream object for "JACOB reflection".
 
Constructor Summary
SetStream()
           
 
Method Summary
 void close()
          Closes the source stream.
 Aggregate getAggregate(Aggregate a, StreamerSupport[] allowed)
           
 Base[] getAggregate(StreamerSupport s, StreamerSupport[] allowed)
           
 boolean getBool()
           
 byte getByte()
           
 char getChar()
           
 byte[] getData()
           
 double getDouble()
           
 int getEnum(aos.apib.EnumInfo n)
           
 float getFloat()
           
 int getInt()
           
 long getLong()
           
 Base getObject(StreamerSupport[] allowed)
           
 java.lang.Object getOther(StreamerSupport[] allowed)
           
 short getShort()
           
 java.lang.String getString(boolean allowmultiline)
           
 int nextField(int last, StreamerSupport s)
           
 Base readObject()
          Reads a JACOB Object tree using the current TypeDict.
 void set(Base o, java.lang.String fn, boolean v)
          Assigns a boolean field.
 void set(Base o, java.lang.String fn, byte v)
          Assigns a byte field.
 void set(Base o, java.lang.String fn, char v)
          Assigns a char field.
 void set(Base o, java.lang.String fn, double v)
          Assigns a double field.
 void set(Base o, java.lang.String fn, float v)
          Assigns a float field.
 void set(Base o, java.lang.String fn, int v)
          Assigns an int field.
 void set(Base o, java.lang.String fn, long v)
          Assigns a long field.
 void set(Base o, java.lang.String fn, short v)
          Assigns a short field.
 void set(StreamerSupport s, Base bo, int fn, boolean v)
          Assigns a boolean field.
 void set(StreamerSupport s, Base bo, int fn, byte v)
          Assigns a byte field.
 void set(StreamerSupport s, Base bo, int fn, char v)
          Assigns a char field.
 void set(StreamerSupport s, Base bo, int fn, double v)
          Assigns a double field.
 void set(StreamerSupport s, Base bo, int fn, float v)
          Assigns a float field.
 void set(StreamerSupport s, Base bo, int fn, int v)
          Assigns an int field.
 void set(StreamerSupport s, Base bo, int fn, long v)
          Assigns a long field.
 void set(StreamerSupport s, Base bo, int fn, java.lang.Object v)
          Assigns an Object field.
 void set(StreamerSupport s, Base bo, int fn, short v)
          Assigns a short field.
 
Methods inherited from class aos.apib.InStream
fromGZIP, getFilename, newAsciiInStream, newAsciiInStream, newBinaryInStream, newBinaryInStream, notifyReadResolver, open, open, open, open, readBaseClasses, readMultipleObjects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final SetStream instance
Holds the common SetStream object for "JACOB reflection".

Constructor Detail

SetStream

public SetStream()
Method Detail

close

public void close()
Description copied from class: InStream
Closes the source stream.

Overrides:
close in class InStream

set

public void set(Base o,
                java.lang.String fn,
                boolean v)
Assigns a boolean field.


set

public void set(Base o,
                java.lang.String fn,
                char v)
Assigns a char field.


set

public void set(Base o,
                java.lang.String fn,
                byte v)
Assigns a byte field.


set

public void set(Base o,
                java.lang.String fn,
                short v)
Assigns a short field.


set

public void set(Base o,
                java.lang.String fn,
                int v)
Assigns an int field.


set

public void set(Base o,
                java.lang.String fn,
                long v)
Assigns a long field.


set

public void set(Base o,
                java.lang.String fn,
                float v)
Assigns a float field.


set

public void set(Base o,
                java.lang.String fn,
                double v)
Assigns a double field.


set

public void set(StreamerSupport s,
                Base bo,
                int fn,
                boolean v)
Assigns a boolean field.


set

public void set(StreamerSupport s,
                Base bo,
                int fn,
                char v)
Assigns a char field.


set

public void set(StreamerSupport s,
                Base bo,
                int fn,
                byte v)
Assigns a byte field.


set

public void set(StreamerSupport s,
                Base bo,
                int fn,
                short v)
Assigns a short field.


set

public void set(StreamerSupport s,
                Base bo,
                int fn,
                int v)
Assigns an int field.


set

public void set(StreamerSupport s,
                Base bo,
                int fn,
                long v)
Assigns a long field.


set

public void set(StreamerSupport s,
                Base bo,
                int fn,
                float v)
Assigns a float field.


set

public void set(StreamerSupport s,
                Base bo,
                int fn,
                double v)
Assigns a double field.


set

public void set(StreamerSupport s,
                Base bo,
                int fn,
                java.lang.Object v)
Assigns an Object field.


readObject

public Base readObject()
Description copied from class: InStream
Reads a JACOB Object tree using the current TypeDict.

Specified by:
readObject in class InStream

nextField

public int nextField(int last,
                     StreamerSupport s)

getChar

public char getChar()
Specified by:
getChar in class InStream

getBool

public boolean getBool()
Specified by:
getBool in class InStream

getByte

public byte getByte()
Specified by:
getByte in class InStream

getShort

public short getShort()
Specified by:
getShort in class InStream

getInt

public int getInt()
Specified by:
getInt in class InStream

getLong

public long getLong()
Specified by:
getLong in class InStream

getString

public java.lang.String getString(boolean allowmultiline)
Specified by:
getString in class InStream

getEnum

public int getEnum(aos.apib.EnumInfo n)
Specified by:
getEnum in class InStream

getFloat

public float getFloat()
Specified by:
getFloat in class InStream

getDouble

public double getDouble()
Specified by:
getDouble in class InStream

getData

public byte[] getData()
Specified by:
getData in class InStream

getObject

public Base getObject(StreamerSupport[] allowed)
Specified by:
getObject in class InStream

getOther

public java.lang.Object getOther(StreamerSupport[] allowed)
Specified by:
getOther in class InStream

getAggregate

public Base[] getAggregate(StreamerSupport s,
                           StreamerSupport[] allowed)
Specified by:
getAggregate in class InStream

getAggregate

public Aggregate getAggregate(Aggregate a,
                              StreamerSupport[] allowed)
Specified by:
getAggregate in class InStream

JACK 5.4 JACOB Application Interface

Copyright (C) 1999-2008, Agent Oriented Software Pty. Ltd.

US Government Restricted Rights
The JACK Modules and relevant Software Material have been developed entirely at private expense and are accordingly provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013 or subparagraph (c)(1) and (2) of the Commercial Computer Software Restricted Rights and 48 CFR 52.2270-19, as applicable.


Agent Oriented Software Pty. Ltd.     http://www.aosgrp.com
PO Box 639, Carlton South, Victoria 3053, Australia
Phone: +61 3 9349 5055, Fax: +61 3 9349 5088