# Uses of Class
org.apache.bcel.classfile.ClassFormatException

Packages that use ClassFormatException
Package
Description
org.apache.bcel.classfile
Classes that describe the structure of a Java class file and a class file parser.

- ## Uses of ClassFormatException in org.apache.bcel.classfile

  Subclasses of ClassFormatException in org.apache.bcel.classfile
  Modifier and Type
  Class
  Description
  `class`
  `InvalidMethodSignatureException`
  Thrown when the BCEL attempts to read a class file and determines that a class is malformed or otherwise cannot be interpreted as a class file.
  Methods in org.apache.bcel.classfile that throw ClassFormatException
  Modifier and Type
  Method
  Description
  `<T extends Constant>
  T`
  ConstantPool.`getConstant(int index)`
  Gets constant from constant pool.
  `<T extends Constant>
  T`
  ConstantPool.`getConstant(int index, byte tag)`
  Gets constant from constant pool and check whether it has the expected type.
  `<T extends Constant>
  T`
  ConstantPool.`getConstant(int index, byte tag, Class<T> castTo)`
  Gets constant from constant pool and check whether it has the expected type.
  `<T extends Constant>
  T`
  ConstantPool.`getConstant(int index, Class<T> castTo)`
  Gets constant from constant pool.
  `ConstantUtf8`
  ConstantPool.`getConstantUtf8(int index)`
  Gets constant from constant pool and check whether it has the expected type.
  `static String[]`
  Utility.`methodSignatureArgumentTypes(String signature)`
  Converts argument list portion of method signature to string with all class names compacted.
  `static String[]`
  Utility.`methodSignatureArgumentTypes(String signature, boolean chopit)`
  Converts argument list portion of method signature to string.
  `static String`
  Utility.`methodSignatureReturnType(String signature)`
  Converts return type portion of method signature to string with all class names compacted.
  `static String`
  Utility.`methodSignatureReturnType(String signature, boolean chopit)`
  Converts return type portion of method signature to string.
  `static String`
  Utility.`methodSignatureToString(String signature, String name, String access, boolean chopit, LocalVariableTable vars)`
  This method converts a method signature string into a Java type declaration like 'void main(String[])' and throws a 'ClassFormatException' when the parsed type is invalid.
  `static String`
  Utility.`methodTypeToSignature(String ret, String[] argv)`
  Converts string containing the method return and argument types to a byte code method signature.
  `JavaClass`
  ClassParser.`parse()`
  Parses the given Java class file and return an object that represents the contained data, i.e., constants, methods, fields and commands.
  `static Constant`
  Constant.`readConstant(DataInput dataInput)`
  Reads one constant from the given input, the type depends on a tag byte.
  `static byte`
  Utility.`typeOfMethodSignature(String signature)`
  Return type of method signature as a byte value as defined in Constants
  `static byte`
  Utility.`typeOfSignature(String signature)`
  Return type of signature as a byte value as defined in Constants
  `static String`
  Utility.`typeSignatureToString(String signature, boolean chopit)`
  This method converts a type signature string into a Java type declaration such as 'String[]' and throws a 'ClassFormatException' when the parsed type is invalid.