Package hec.io

Class AsciiDeserializer

java.lang.Object
hec.io.AsciiDeserializer
All Implemented Interfaces:
AsciiSerializableConstants

public class AsciiDeserializer extends Object implements AsciiSerializableConstants
  • Field Details

    • FLOAT_NAN

      protected static final Float FLOAT_NAN
    • FLOAT_POSITIVE_INFINITY

      protected static final Float FLOAT_POSITIVE_INFINITY
    • FLOAT_NEGATIVE_INFINITY

      protected static final Float FLOAT_NEGATIVE_INFINITY
    • DOUBLE_NAN

      protected static final Double DOUBLE_NAN
    • DOUBLE_POSITIVE_INFINITY

      protected static final Double DOUBLE_POSITIVE_INFINITY
    • DOUBLE_NEGATIVE_INFINITY

      protected static final Double DOUBLE_NEGATIVE_INFINITY
    • _in

      protected BufferedReader _in
    • _objectTable

      protected Map<Object,Object> _objectTable
    • _curLine

      protected String _curLine
    • _curType

      protected String _curType
    • _curParam

      protected String _curParam
    • _version

      protected int _version
    • _showTiming

      protected static boolean _showTiming
  • Constructor Details

  • Method Details

    • putObjectInTable

      protected void putObjectInTable(Object id, Object obj)
    • reset

      public void reset(BufferedReader in)
      reset this Deserializer to a new BufferedReader
    • clear

      public void clear()
      clear the working data
    • deserializeObject

      public boolean deserializeObject(Object obj)
    • readInteger

      protected Integer readInteger()
    • readREFERENCE

      protected Object readREFERENCE()
    • readOBJECT

      protected Object readOBJECT(Object oldobj)
    • readArrayOBJECT

      protected Object readArrayOBJECT(Object oldobj)
    • readObjectField

      protected void readObjectField(Object obj) throws IOException
      Throws:
      IOException
    • getField

      public Field getField(Class fclass, String fname)
    • setFieldValue

      public void setFieldValue(Object obj, Field fld, Object fobj)
    • readArrayElements

      protected void readArrayElements(Object obj) throws IOException
      read in a primative array.
      Throws:
      IOException
    • readObjectCollection

      protected void readObjectCollection(Collection obj) throws IOException
      Throws:
      IOException
    • readEnumType

      protected Object readEnumType()
    • readObjectMap

      protected void readObjectMap(Map obj) throws IOException
      Throws:
      IOException
    • skipToNextEnd

      protected void skipToNextEnd() throws IOException
      Throws:
      IOException
    • getVersion

      protected void getVersion()
    • setCurParam

      public void setCurParam(String curParam)
      Parameters:
      curParam -
    • getCurParam

      public String getCurParam()
    • getCurLine

      public String getCurLine()
      Returns:
    • addClassMapping

      public void addClassMapping(String oldClass, String newClass)
      map an old classname to a new classname.
      Parameters:
      oldClass - the name of the class in the AsciiSerialized file
      newClass - the name of the class that should be created when the deserializer finds oldClass
    • getNewClassMapping

      protected String getNewClassMapping(String curClass)
    • readSeasonalRecord

      protected SeasonalRecord readSeasonalRecord()
    • readPairedValues

      protected PairedValues readPairedValues()
      read a PairedValues object
    • readTextFileReference

      protected TextFileReference readTextFileReference()