Class CUnivalReader



  • public class CUnivalReader
    extends java.lang.Object
    Utility class for reading arbitrary UnivalValue instances from input stream.
    • Constructor Summary

      Constructors 
      Constructor Description
      CUnivalReader​()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static sk.ipesoft.d2000.base.UnivalValue<?> readUniVal​(java.io.DataInputStream stream, D2StructureDefinitionResolver structResolver)
      Read arbitrary UnivalValue instances from input stream and return null instead of UnivalNan.
      static sk.ipesoft.d2000.base.UnivalValue<?> readUniValNotNull​(java.io.DataInputStream stream, D2StructureDefinitionResolver structResolver)
      Read arbitrary UnivalValue instances from input stream with guarantee of never returning null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CUnivalReader

        public CUnivalReader​()
    • Method Detail

      • readUniVal

        public static sk.ipesoft.d2000.base.UnivalValue<?> readUniVal​(java.io.DataInputStream stream,
                                                                      D2StructureDefinitionResolver structResolver)
                                                               throws java.io.IOException
        Read arbitrary UnivalValue instances from input stream and return null instead of UnivalNan.
        Parameters:
        stream - stream to read from
        structResolver - cache of D2000 Structure Definition objects
        Returns:
        new instance of UnivalValue read from stream or null instead of UnivalNan
        Throws:
        java.io.IOException - propagated from stream
      • readUniValNotNull

        public static sk.ipesoft.d2000.base.UnivalValue<?> readUniValNotNull​(java.io.DataInputStream stream,
                                                                             D2StructureDefinitionResolver structResolver)
                                                                      throws java.io.IOException
        Read arbitrary UnivalValue instances from input stream with guarantee of never returning null.
        Parameters:
        stream - stream to read from
        structResolver - cache of D2000 Structure Definition objects
        Returns:
        new instance of UnivalValue read from stream
        Throws:
        java.io.IOException - propagated from stream