org.hibernate.bytecode.util
Class ByteCodeHelper

java.lang.Object
  extended by 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


Copyright © null-null Red Hat Middleware, LLC. All Rights Reserved