edu.iris.Fissures.seed.builder
Class SeedObjectBuilder

java.lang.Object
  extended by edu.iris.Fissures.seed.builder.ObjectBuilder
      extended by edu.iris.Fissures.seed.builder.SeedObjectBuilder

Deprecated. to be superceded by #SeedMMAPImportBuilder

@Deprecated
public class SeedObjectBuilder
extends ObjectBuilder


Field Summary
protected  Blockette recycleBlockette
          Deprecated.  
 
Fields inherited from class edu.iris.Fissures.seed.builder.ObjectBuilder
buildContainer, builderType, buildFilterVector, continuationFlag, currentObject, largeCoeffFlag, recordBeginFlag, recordType, volumeNumber
 
Constructor Summary
SeedObjectBuilder()
          Deprecated. Create a SEED object builder.
SeedObjectBuilder(java.lang.String diskFile)
          Deprecated. Create a SEED Object Builder with serialization to indicated filename.
 
Method Summary
 int build(byte[] nextRecord)
          Deprecated. Construct a Blockette object by reading from the start of the indicated byte array.
 int build(java.lang.String blocketteSpec)
          Deprecated. Construct a Blockette object from the delimited String.
 void dictionaryLookupMutation(boolean b)
          Deprecated.  
protected  int getSequenceNum(int headerCode)
          Deprecated. DEPRECATED Return a six-digit sequence number based on the header code (category number) of the current blockette object.
 void incrementVolume()
          Deprecated. Increment the volume number when a new data stream is being read in.
 void reset()
          Deprecated. Reset the builder to its initial state.
 int store()
          Deprecated. Store created SEED object to the SEED object container.
 
Methods inherited from class edu.iris.Fissures.seed.builder.ObjectBuilder
getContainer, getObject, getType, getVolume, registerFilter, removeCurrent, setContinuationFlag, setLargeCoeffFlag, setRecordBeginFlag, setRecordType, setVolume, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

recycleBlockette

protected Blockette recycleBlockette
Deprecated. 
Constructor Detail

SeedObjectBuilder

public SeedObjectBuilder()
Deprecated. 
Create a SEED object builder.


SeedObjectBuilder

public SeedObjectBuilder(java.lang.String diskFile)
                  throws BuilderException
Deprecated. 
Create a SEED Object Builder with serialization to indicated filename.

Throws:
BuilderException
Method Detail

build

public int build(byte[] nextRecord)
          throws java.lang.Exception
Deprecated. 
Construct a Blockette object by reading from the start of the indicated byte array.

Specified by:
build in class ObjectBuilder
Throws:
java.lang.Exception

build

public int build(java.lang.String blocketteSpec)
          throws java.lang.Exception
Deprecated. 
Construct a Blockette object from the delimited String. Only accepts standard delimiters '|' and '^'. Return the length in bytes of the processed String as a confirmation of success. Return -1 on failure.

Specified by:
build in class ObjectBuilder
Throws:
java.lang.Exception

store

public int store()
          throws java.lang.Exception
Deprecated. 
Store created SEED object to the SEED object container. Return the blockette object's lookup ID number, assigned in this method. Returns a -1 on failure. volumeNumber is used for indexing blockettes in the container. lookupID pattern for dictionary blockettes is this: Integer: V,VVT,BBN,NNN (positive value must not exceed (2,147,483,647) where V = volume number 000-214 T = header category 0-6 (0=reserved,1=volume,2=dictionary,3=station,4=timespan,5=data,6=reserved) B = blockette type number 00-99 N = sequence number per header category 0000-9999 lookupID pattern for non-dictionary blockettes is this: Integer: V,VVT,NNN,NNN (positive value must not exceed (2,147,483,647) where V = volume number 000-214 T = header category 0-6 (0=reserved,1=volume,2=dictionary,3=station,4=timespan,5=data,6=reserved) N = sequence number per header category 000,000-999,999

Specified by:
store in class ObjectBuilder
Throws:
java.lang.Exception

reset

public void reset()
Deprecated. 
Reset the builder to its initial state. Generally used during volume transitions.

Specified by:
reset in class ObjectBuilder

incrementVolume

public void incrementVolume()
Deprecated. 
Increment the volume number when a new data stream is being read in. Also reset state of the Builder. This method supercedes the ObjectBuilder implementation

Overrides:
incrementVolume in class ObjectBuilder

dictionaryLookupMutation

public void dictionaryLookupMutation(boolean b)
Deprecated. 

getSequenceNum

protected int getSequenceNum(int headerCode)
                      throws BuilderException
Deprecated. 
DEPRECATED Return a six-digit sequence number based on the header code (category number) of the current blockette object.

Throws:
BuilderException