Class ConstantPoolInfoFactory

  • All Implemented Interfaces:
    ConstantTypes

    public final class ConstantPoolInfoFactory
    extends java.lang.Object
    implements ConstantTypes
    A factory for constant pool information.
    Version:
    1.0
    • Constructor Detail

      • ConstantPoolInfoFactory

        private ConstantPoolInfoFactory()
        Private constructor to prevent instantiation.
    • Method Detail

      • readConstantPoolInfo

        public static ConstantPoolInfo readConstantPoolInfo​(ClassFile cf,
                                                            java.io.DataInputStream in)
                                                     throws java.io.IOException
        Reads constant pool information.
        Parameters:
        cf - The class file being parsed.
        in - The input stream to read from.
        Returns:
        The next constant pool record.
        Throws:
        java.io.IOException - If an IO error occurs.