-
- All Superinterfaces:
java.util.function.BiConsumer<T,java.io.DataOutput>,DataReader.Deserializer<T>,DataWriter.Serializer<T>,java.util.function.Function<java.io.DataInput,T>
public interface DataInterpreter<T> extends DataReader.Deserializer<T>, DataWriter.Serializer<T>
-
-
Field Summary
Fields Modifier and Type Field Description static DataInterpreter<byte[]>BYTESstatic DataInterpreter<java.lang.String>STRINGDeprecated.v56 Use one of the other alternativesstatic DataInterpreter<java.lang.String>STRING_BYTESstatic DataInterpreter<java.lang.String>STRING_CHARSstatic DataInterpreter<java.lang.String>STRING_UTF
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static <N extends java.lang.Comparable<N>>
DataInterpreter<ArrayAnyD<N>>newIDX(DenseArray.Factory<N,?> denseArray)default DataReader<T>newReader(java.io.File file)default DataReader<T>newReader(java.io.File file, OperatorWithException<java.io.InputStream> filter)static <T> DataInterpreter<EntryPair.KeyedPrimitive<KeyValue.Dual<T>>>newScoredDual(DataInterpreter<T> keyInterpreter)default DataWriter<T>newWriter(java.io.File file)default DataWriter<T>newWriter(java.io.File file, OperatorWithException<java.io.OutputStream> filter)static bytetoByte(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 chartoChar(byte[] bytes)static doubletoDouble(byte[] bytes)static floattoFloat(byte[] bytes)static inttoInt(byte[] bytes)static longtoLong(byte[] bytes)static shorttoShort(byte[] bytes)-
Methods inherited from interface org.ojalgo.netio.DataReader.Deserializer
apply, deserialize
-
Methods inherited from interface org.ojalgo.netio.DataWriter.Serializer
accept, serialize
-
-
-
-
Field Detail
-
BYTES
static final DataInterpreter<byte[]> BYTES
-
STRING_BYTES
static final DataInterpreter<java.lang.String> STRING_BYTES
-
STRING_CHARS
static final DataInterpreter<java.lang.String> STRING_CHARS
-
STRING_UTF
static final DataInterpreter<java.lang.String> STRING_UTF
-
STRING
@Deprecated static final DataInterpreter<java.lang.String> STRING
Deprecated.v56 Use one of the other alternatives
-
-
Method Detail
-
newIDX
static <N extends java.lang.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
default DataReader<T> newReader(java.io.File file)
-
newReader
default DataReader<T> newReader(java.io.File file, OperatorWithException<java.io.InputStream> filter)
-
newWriter
default DataWriter<T> newWriter(java.io.File file)
-
newWriter
default DataWriter<T> newWriter(java.io.File file, OperatorWithException<java.io.OutputStream> filter)
-
-