Class InterpreterUtil
- java.lang.Object
-
- org.jetbrains.java.decompiler.util.InterpreterUtil
-
public final class InterpreterUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int[]EMPTY_INT_ARRAYstatic booleanIS_WINDOWS
-
Constructor Summary
Constructors Constructor Description InterpreterUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopyFile(java.io.File source, java.io.File target)static voidcopyStream(java.io.InputStream in, java.io.OutputStream out)static voiddiscardBytes(java.io.InputStream stream, int length)static booleanequalLists(java.util.List<?> first, java.util.List<?> second)static booleanequalObjects(java.lang.Object first, java.lang.Object second)static booleanequalSets(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.StringmakeUniqueKey(java.lang.String name, java.lang.String descriptor)static java.lang.StringmakeUniqueKey(java.lang.String name, java.lang.String descriptor1, java.lang.String descriptor2)static byte[]readBytes(java.io.InputStream stream, int length)
-
-
-
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)
-
-