Package sk.ipesoft.d2000.d2japi.unival
Class CUnivalReader
- java.lang.Object
-
- sk.ipesoft.d2000.d2japi.unival.CUnivalReader
-
public class CUnivalReader extends java.lang.Object
Utility class for reading arbitraryUnivalValue
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 arbitraryUnivalValue
instances from input stream and returnnull
instead ofUnivalNan
.static sk.ipesoft.d2000.base.UnivalValue<?>
readUniValNotNull(java.io.DataInputStream stream, D2StructureDefinitionResolver structResolver)
Read arbitraryUnivalValue
instances from input stream with guarantee of never returningnull
.
-
-
-
Method Detail
-
readUniVal
public static sk.ipesoft.d2000.base.UnivalValue<?> readUniVal(java.io.DataInputStream stream, D2StructureDefinitionResolver structResolver) throws java.io.IOException
Read arbitraryUnivalValue
instances from input stream and returnnull
instead ofUnivalNan
.- Parameters:
stream
- stream to read fromstructResolver
- cache of D2000 Structure Definition objects- Returns:
- new instance of
UnivalValue
read from stream ornull
instead ofUnivalNan
- 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 arbitraryUnivalValue
instances from input stream with guarantee of never returningnull
.- Parameters:
stream
- stream to read fromstructResolver
- cache of D2000 Structure Definition objects- Returns:
- new instance of
UnivalValue
read from stream - Throws:
java.io.IOException
- propagated from stream
-
-