jef.dna
Class DnaReader

java.lang.Object
  extended by jef.dna.DnaReader

public class DnaReader
extends java.lang.Object

The DnaReader class is used to obtain a Dna instance. A Dna object instance contains all the information stored in a class file. Thus, the obtained Dna instance can be used for accessing and manipulating these information.

Author:
Francesco Russo (frusso@cs.unibo.it)

Constructor Summary
DnaReader(java.io.File inputClassFile)
          The DnaReader constructor.
 
Method Summary
 Dna read()
          Method for obtaining the Dna object representing the class file passed to the constructor.
static Dna read(byte[] bytecode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DnaReader

public DnaReader(java.io.File inputClassFile)
The DnaReader constructor. At the moment this is the only available constructor.

Parameters:
inputClassFile - The input class file.
Method Detail

read

public Dna read()
         throws DnaDeserializationException,
                MissingDnaContainerException,
                InstantiatorException,
                java.io.FileNotFoundException
Method for obtaining the Dna object representing the class file passed to the constructor.

Returns:
Dna The Dna instance representing the class file.
Throws:
DnaDeserializationException
MissingDnaContainerException
InstantiatorException
java.io.FileNotFoundException

read

public static Dna read(byte[] bytecode)
                throws InstantiatorException,
                       DnaDeserializationException,
                       MissingDnaContainerException
Throws:
InstantiatorException
DnaDeserializationException
MissingDnaContainerException