Class 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 void writeDoubleArrays​(java.io.DataOutput dataOutput, java.lang.Number[][] numberArrays)  
      static void writeDoubles​(java.io.DataOutput dataOutput, java.lang.Number[] numbers)  
      static void writeFloatArrays​(java.io.DataOutput dataOutput, java.lang.Number[][] numberArrays)  
      static void writeFloats​(java.io.DataOutput dataOutput, java.lang.Number[] numbers)  
      static void writeIntegerArrays​(java.io.DataOutput dataOutput, java.lang.Number[][] numberArrays)  
      static void writeIntegers​(java.io.DataOutput dataOutput, java.lang.Number[] numbers)  
      static void writeQNames​(java.io.DataOutput dataOutput, javax.xml.namespace.QName[] names)  
      static void writeStringArrays​(java.io.DataOutput dataOutput, java.lang.String[][] stringArrays)  
      static void writeStringLists​(java.io.DataOutput dataOutput, java.util.List<java.lang.String>[] stringLists)  
      static void writeStrings​(java.io.DataOutput dataOutput, java.lang.String[] strings)  
      static void writeTokenizedStrings​(java.io.DataOutput dataOutput, TokenizedString[] tokenizedStrings)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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