remoteTester.runner
Class BytableHelper

java.lang.Object
  extended byremoteTester.runner.BytableHelper

public class BytableHelper
extends java.lang.Object

convert a Class to its byte[] equivalent


Method Summary
static byte[] byteIt(java.lang.Class aClass)
          convert a Class accessible in the classpath in a byte array
static byte[] byteIt(java.lang.Class aClass, java.lang.String path)
          Deprecated. use the byteIt(Class aClass) method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

byteIt

public static byte[] byteIt(java.lang.Class aClass)
                     throws java.io.IOException
convert a Class accessible in the classpath in a byte array

Parameters:
aClass - class to convert as a byte array
Returns:
a byte array representation of a class definition
Throws:
java.io.IOException - if the inputStream cannot be read

byteIt

public static byte[] byteIt(java.lang.Class aClass,
                            java.lang.String path)
                     throws java.io.IOException
Deprecated. use the byteIt(Class aClass) method

Parameters:
aClass - the class to convert to byte[]
path - root path to find classes files
Returns:
a byte array representation of a class definition
Throws:
java.io.IOException - if the inputStream cannot be read


Copyright © 2003-2004 Nicolas FRANK. All Rights Reserved.