Class InterpreterUtil


  • public final class InterpreterUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      InterpreterUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void copyFile​(java.io.File source, java.io.File target)  
      static void copyStream​(java.io.InputStream in, java.io.OutputStream out)  
      static void discardBytes​(java.io.InputStream stream, int length)  
      static boolean equalLists​(java.util.List<?> first, java.util.List<?> second)  
      static boolean equalObjects​(java.lang.Object first, java.lang.Object second)  
      static boolean equalSets​(java.util.Collection<?> c1, java.util.Collection<?> c2)  
      static byte[] getBytes​(java.io.File file)  
      static byte[] getBytes​(java.util.zip.ZipFile archive, java.util.zip.ZipEntry entry)  
      static java.lang.String makeUniqueKey​(java.lang.String name, java.lang.String descriptor)  
      static java.lang.String makeUniqueKey​(java.lang.String name, java.lang.String descriptor1, java.lang.String descriptor2)  
      static byte[] readBytes​(java.io.InputStream stream, int length)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • IS_WINDOWS

        public static final boolean IS_WINDOWS
      • EMPTY_INT_ARRAY

        public static final int[] EMPTY_INT_ARRAY
    • Constructor Detail

      • InterpreterUtil

        public InterpreterUtil()
    • Method Detail

      • copyFile

        public static void copyFile​(java.io.File source,
                                    java.io.File target)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • copyStream

        public static void copyStream​(java.io.InputStream in,
                                      java.io.OutputStream out)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • getBytes

        public static byte[] getBytes​(java.util.zip.ZipFile archive,
                                      java.util.zip.ZipEntry entry)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • getBytes

        public static byte[] getBytes​(java.io.File file)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • readBytes

        public static byte[] readBytes​(java.io.InputStream stream,
                                       int length)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • discardBytes

        public static void discardBytes​(java.io.InputStream stream,
                                        int length)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • equalSets

        public static boolean equalSets​(java.util.Collection<?> c1,
                                        java.util.Collection<?> c2)
      • equalObjects

        public static boolean equalObjects​(java.lang.Object first,
                                           java.lang.Object second)
      • equalLists

        public static boolean equalLists​(java.util.List<?> first,
                                         java.util.List<?> second)
      • makeUniqueKey

        public static java.lang.String makeUniqueKey​(java.lang.String name,
                                                     java.lang.String descriptor)
      • makeUniqueKey

        public static java.lang.String makeUniqueKey​(java.lang.String name,
                                                     java.lang.String descriptor1,
                                                     java.lang.String descriptor2)