public class ByteCodeHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
readByteCode(java.io.File file)
Read class definition from a file.
|
static byte[] |
readByteCode(java.io.InputStream inputStream)
Reads class byte array info from the given input stream.
|
static byte[] |
readByteCode(java.util.zip.ZipInputStream zip)
Read class definition a zip (jar) file entry.
|
public static byte[] readByteCode(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - The stream containing the class binary; null will lead to an IOExceptionjava.io.IOException - Indicates a problem accessing the given stream.public static byte[] readByteCode(java.io.File file)
throws java.io.IOException
file - The file to read.java.io.IOException - Indicates a problem accessing the given stream.public static byte[] readByteCode(java.util.zip.ZipInputStream zip)
throws java.io.IOException
zip - The zip entry stream.java.io.IOException - Indicates a problem accessing the given stream.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.