Package org.jpmml.evaluator
Class ResourceUtil
- java.lang.Object
-
- org.jpmml.evaluator.ResourceUtil
-
public class ResourceUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Double[][]readDoubleArrays(java.io.DataInput dataInput, int count, int length)static java.lang.Double[]readDoubles(java.io.DataInput dataInput, int count)static java.lang.Float[][]readFloatArrays(java.io.DataInput dataInput, int count, int length)static java.lang.Float[]readFloats(java.io.DataInput dataInput, int count)static java.lang.Integer[][]readIntegerArrays(java.io.DataInput dataInput, int count, int length)static java.lang.Integer[]readIntegers(java.io.DataInput dataInput, int count)static javax.xml.namespace.QName[]readQNames(java.io.DataInput dataInput, int count)static java.lang.String[][]readStringArrays(java.io.DataInput dataInput, int count, int length)static java.util.List<java.lang.String>[]readStringLists(java.io.DataInput dataInput, int count)static java.lang.String[]readStrings(java.io.DataInput dataInput, int count)static TokenizedString[]readTokenizedStrings(java.io.DataInput dataInput, int count)static voidwriteDoubleArrays(java.io.DataOutput dataOutput, java.lang.Number[][] numberArrays)static voidwriteDoubles(java.io.DataOutput dataOutput, java.lang.Number[] numbers)static voidwriteFloatArrays(java.io.DataOutput dataOutput, java.lang.Number[][] numberArrays)static voidwriteFloats(java.io.DataOutput dataOutput, java.lang.Number[] numbers)static voidwriteIntegerArrays(java.io.DataOutput dataOutput, java.lang.Number[][] numberArrays)static voidwriteIntegers(java.io.DataOutput dataOutput, java.lang.Number[] numbers)static voidwriteQNames(java.io.DataOutput dataOutput, javax.xml.namespace.QName[] names)static voidwriteStringArrays(java.io.DataOutput dataOutput, java.lang.String[][] stringArrays)static voidwriteStringLists(java.io.DataOutput dataOutput, java.util.List<java.lang.String>[] stringLists)static voidwriteStrings(java.io.DataOutput dataOutput, java.lang.String[] strings)static voidwriteTokenizedStrings(java.io.DataOutput dataOutput, TokenizedString[] tokenizedStrings)
-
-
-
Method Detail
-
readQNames
public static javax.xml.namespace.QName[] readQNames(java.io.DataInput dataInput, int count) throws java.io.IOException- Throws:
java.io.IOException
-
writeQNames
public static void writeQNames(java.io.DataOutput dataOutput, javax.xml.namespace.QName[] names) throws java.io.IOException- Throws:
java.io.IOException
-
readTokenizedStrings
public static TokenizedString[] readTokenizedStrings(java.io.DataInput dataInput, int count) throws java.io.IOException
- Throws:
java.io.IOException
-
writeTokenizedStrings
public static void writeTokenizedStrings(java.io.DataOutput dataOutput, TokenizedString[] tokenizedStrings) throws java.io.IOException- Throws:
java.io.IOException
-
readStrings
public static java.lang.String[] readStrings(java.io.DataInput dataInput, int count) throws java.io.IOException- Throws:
java.io.IOException
-
readStringArrays
public static java.lang.String[][] readStringArrays(java.io.DataInput dataInput, int count, int length) throws java.io.IOException- Throws:
java.io.IOException
-
readStringLists
public static java.util.List<java.lang.String>[] readStringLists(java.io.DataInput dataInput, int count) throws java.io.IOException- Throws:
java.io.IOException
-
writeStrings
public static void writeStrings(java.io.DataOutput dataOutput, java.lang.String[] strings) throws java.io.IOException- Throws:
java.io.IOException
-
writeStringArrays
public static void writeStringArrays(java.io.DataOutput dataOutput, java.lang.String[][] stringArrays) throws java.io.IOException- Throws:
java.io.IOException
-
writeStringLists
public static void writeStringLists(java.io.DataOutput dataOutput, java.util.List<java.lang.String>[] stringLists) throws java.io.IOException- Throws:
java.io.IOException
-
readIntegers
public static java.lang.Integer[] readIntegers(java.io.DataInput dataInput, int count) throws java.io.IOException- Throws:
java.io.IOException
-
readIntegerArrays
public static java.lang.Integer[][] readIntegerArrays(java.io.DataInput dataInput, int count, int length) throws java.io.IOException- Throws:
java.io.IOException
-
writeIntegers
public static void writeIntegers(java.io.DataOutput dataOutput, java.lang.Number[] numbers) throws java.io.IOException- Throws:
java.io.IOException
-
writeIntegerArrays
public static void writeIntegerArrays(java.io.DataOutput dataOutput, java.lang.Number[][] numberArrays) throws java.io.IOException- Throws:
java.io.IOException
-
readDoubles
public static java.lang.Double[] readDoubles(java.io.DataInput dataInput, int count) throws java.io.IOException- Throws:
java.io.IOException
-
readDoubleArrays
public static java.lang.Double[][] readDoubleArrays(java.io.DataInput dataInput, int count, int length) throws java.io.IOException- Throws:
java.io.IOException
-
writeDoubles
public static void writeDoubles(java.io.DataOutput dataOutput, java.lang.Number[] numbers) throws java.io.IOException- Throws:
java.io.IOException
-
writeDoubleArrays
public static void writeDoubleArrays(java.io.DataOutput dataOutput, java.lang.Number[][] numberArrays) throws java.io.IOException- Throws:
java.io.IOException
-
readFloats
public static java.lang.Float[] readFloats(java.io.DataInput dataInput, int count) throws java.io.IOException- Throws:
java.io.IOException
-
readFloatArrays
public static java.lang.Float[][] readFloatArrays(java.io.DataInput dataInput, int count, int length) throws java.io.IOException- Throws:
java.io.IOException
-
writeFloats
public static void writeFloats(java.io.DataOutput dataOutput, java.lang.Number[] numbers) throws java.io.IOException- Throws:
java.io.IOException
-
writeFloatArrays
public static void writeFloatArrays(java.io.DataOutput dataOutput, java.lang.Number[][] numberArrays) throws java.io.IOException- Throws:
java.io.IOException
-
-