org.hibernate.bytecode.util
Class ByteCodeHelper

java.lang.Object
  extended by org.hibernate.bytecode.util.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(java.io.File 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)
           
 
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(java.io.InputStream inputStream)
                           throws java.io.IOException
Reads class byte array info from the given input stream.

The stream is closed within this method!

Parameters:
inputStream -
Returns:
Throws:
java.io.IOException

readByteCode

public static byte[] readByteCode(java.io.File file)
                           throws java.io.IOException
Throws:
java.io.IOException

readByteCode

public static byte[] readByteCode(java.util.zip.ZipInputStream zip)
                           throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008 Hibernate.org. All Rights Reserved.