Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hibernate.bytecode.util
Class ByteCodeHelper

    java.lang.Object
      org.hibernate.bytecode.util.ByteCodeHelper

    public class ByteCodeHelper

extends Object

A helper for reading byte code from various input sources.

Author:
  Steve Ebersole

Method Summary
`static byte[]` | `readByteCode(File file)`
`static byte[]` | `readByteCode(InputStream inputStream)` Reads class byte array info from the given input stream.
`static byte[]` | `readByteCode(ZipInputStream zip)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### readByteCode

    public static byte[] readByteCode(InputStream inputStream)
                               throws IOException

  Reads class byte array info from the given input stream.

  The stream is closed within this method!

  Parameters:
    `inputStream` -
  Returns:
  Throws:
    `IOException`

### readByteCode

    public static byte[] readByteCode(File file)
                               throws IOException

  Throws:
    `IOException`

### readByteCode

    public static byte[] readByteCode(ZipInputStream zip)
                               throws IOException

  Throws:
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD