Package 

Object ClassFileReader

  • All Implemented Interfaces:

    
    public class ClassFileReader
    
                        

    Converts class files to a class file structure ClassFile as defined in org.gjt.jclasslib.structures.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • readFromClassPath

        @JvmOverloads() final static ClassFile readFromClassPath(Array<String> classPath, String packageName, String className, Boolean suppressEOF)

        Looks up a class file in the specified class path and converts it to a ClassFile structure.

        Parameters:
        classPath - the class path from which to read the ClassFile structure
        packageName - the name of the package in which the class resides
        className - the simple name of the class
        suppressEOF - whether an unexpected end-of-file while reading the class file should be ignored
      • readFromClassPath

        @JvmOverloads() final static ClassFile readFromClassPath(Array<String> classPath, String packageName, String className)

        Looks up a class file in the specified class path and converts it to a ClassFile structure.

        Parameters:
        classPath - the class path from which to read the ClassFile structure
        packageName - the name of the package in which the class resides
        className - the simple name of the class
      • readFromFile

        @JvmOverloads() final static ClassFile readFromFile(File file, Boolean suppressEOF)

        Converts a class file to a ClassFile structure.

        Parameters:
        file - the file from which to read the ClassFile structure
        suppressEOF - whether an unexpected end-of-file while reading the class file should be ignored
      • readFromFile

        @JvmOverloads() final static ClassFile readFromFile(File file)

        Converts a class file to a ClassFile structure.

        Parameters:
        file - the file from which to read the ClassFile structure
      • readFromInputStream

        @JvmOverloads() final static ClassFile readFromInputStream(InputStream stream, Boolean suppressEOF)

        Converts a class file to a ClassFile structure.

        Parameters:
        stream - the input stream from which to read the ClassFile structure
        suppressEOF - whether an unexpected end-of-file while reading the class file should be ignored