站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.4 正式版 API 英文文档

ByteCodeHelper (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.bytecode.util
Class ByteCodeHelper

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