Package org.ojalgo.netio
Interface DataInterpreter<T>
- All Superinterfaces:
BiConsumer<T,
,DataOutput> DataReader.Deserializer<T>
,DataWriter.Serializer<T>
,Function<DataInput,
T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataInterpreter
<byte[]> static final DataInterpreter
<String> Deprecated.v56 Use one of the other alternativesstatic final DataInterpreter
<String> static final DataInterpreter
<String> static final DataInterpreter
<String> -
Method Summary
Modifier and TypeMethodDescriptionstatic <N extends Comparable<N>>
DataInterpreter<ArrayAnyD<N>> newIDX
(DenseArray.Factory<N> denseArray) default DataReader
<T> default DataReader
<T> newReader
(File file, OperatorWithException<InputStream> filter) static <T> DataInterpreter
<EntryPair.KeyedPrimitive<KeyValue.Dual<T>>> newScoredDual
(DataInterpreter<T> keyInterpreter) default DataWriter
<T> default DataWriter
<T> newWriter
(File file, OperatorWithException<OutputStream> filter) static byte
toByte
(byte[] bytes) static byte[]
toBytes
(byte value) static byte[]
toBytes
(char value) static byte[]
toBytes
(double value) static byte[]
toBytes
(float value) static byte[]
toBytes
(int value) static byte[]
toBytes
(long value) static byte[]
toBytes
(short value) static char
toChar
(byte[] bytes) static double
toDouble
(byte[] bytes) static float
toFloat
(byte[] bytes) static int
toInt
(byte[] bytes) static long
toLong
(byte[] bytes) static short
toShort
(byte[] bytes) Methods inherited from interface java.util.function.BiConsumer
andThen
Methods inherited from interface org.ojalgo.netio.DataReader.Deserializer
apply, deserialize
Methods inherited from interface org.ojalgo.netio.DataWriter.Serializer
accept, serialize
-
Field Details
-
BYTES
-
STRING_BYTES
-
STRING_CHARS
-
STRING_UTF
-
STRING
Deprecated.v56 Use one of the other alternatives
-
-
Method Details
-
newIDX
static <N extends Comparable<N>> DataInterpreter<ArrayAnyD<N>> newIDX(DenseArray.Factory<N> denseArray) -
newScoredDual
static <T> DataInterpreter<EntryPair.KeyedPrimitive<KeyValue.Dual<T>>> newScoredDual(DataInterpreter<T> keyInterpreter) -
toByte
static byte toByte(byte[] bytes) -
toBytes
static byte[] toBytes(byte value) -
toBytes
static byte[] toBytes(char value) -
toBytes
static byte[] toBytes(double value) -
toBytes
static byte[] toBytes(float value) -
toBytes
static byte[] toBytes(int value) -
toBytes
static byte[] toBytes(long value) -
toBytes
static byte[] toBytes(short value) -
toChar
static char toChar(byte[] bytes) -
toDouble
static double toDouble(byte[] bytes) -
toFloat
static float toFloat(byte[] bytes) -
toInt
static int toInt(byte[] bytes) -
toLong
static long toLong(byte[] bytes) -
toShort
static short toShort(byte[] bytes) -
newReader
-
newReader
-
newWriter
-
newWriter
-