edu.iris.Fissures.seed.container
Class SeedEncodingResolver

java.lang.Object
  extended by edu.iris.Fissures.seed.container.SeedEncodingResolver

public class SeedEncodingResolver
extends java.lang.Object

Utility class for resolving DDL Dictionary Blockettes or Blockette 1000 integer assigned values to a standard String name for the data encoding in question. The returned String is most readily used by the Waveform class.

Version:
11/4/2002
Author:
Robert Casey, IRIS DMC

Constructor Summary
SeedEncodingResolver()
           
 
Method Summary
static java.lang.String resolve(Blockette dictBlk)
          Resolve DDL Blockette to an encoding String name.
static java.lang.String translate(java.lang.String s)
          Translate from encoding number to String name, or vice versa.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeedEncodingResolver

public SeedEncodingResolver()
Method Detail

resolve

public static java.lang.String resolve(Blockette dictBlk)
Resolve DDL Blockette to an encoding String name. Using the provided Data Format Dictionary Blockette (Blockette 30), interpret and resolve the data encoding format represented based on a recognizable signature between the data format family type, number of decoder keys, and the decoder key strings themselves. Each signature will translate to a single String keyword representing the name of the encoding type. This keyword can be swapped for a Blockette 1000-compatible String number which also represents the unique encoding type.


translate

public static java.lang.String translate(java.lang.String s)
Translate from encoding number to String name, or vice versa. String supplied is either a number or a word representing an encoding type. if a word is supplied, the corresponding number is returned. if a number is supplied, the corresponding word is returned.