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