org.hibernate.bytecode.util

Class ByteCodeHelper


public class ByteCodeHelper
extends java.lang.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)

Method Details

readByteCode

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

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:

readByteCode

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