|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.bytecode.spi.ByteCodeHelper
public class ByteCodeHelper
A helper for reading byte code from various input sources.
| Method Summary | |
|---|---|
static byte[] |
readByteCode(File file)
Read class definition from a file. |
static byte[] |
readByteCode(InputStream inputStream)
Reads class byte array info from the given input stream. |
static byte[] |
readByteCode(ZipInputStream zip)
Read class definition a zip (jar) file entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static byte[] readByteCode(InputStream inputStream)
throws IOException
inputStream - The stream containing the class binary; null will lead to an IOException
IOException - Indicates a problem accessing the given stream.
public static byte[] readByteCode(File file)
throws IOException
file - The file to read.
IOException - Indicates a problem accessing the given stream.
public static byte[] readByteCode(ZipInputStream zip)
throws IOException
zip - The zip entry stream.
IOException - Indicates a problem accessing the given stream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||