Package fr.xlim.ssd.capmanipulator.library

Examples of fr.xlim.ssd.capmanipulator.library.ClassExportsInfo


        exportComponent.setClassCount(in.readByte());

        exportComponent.setClassExports(new ArrayList<ClassExportsInfo>());

        for (int i = 0; i < exportComponent.getClassCount(); i++) {
            ClassExportsInfo cEx = new ClassExportsInfoRead().load(in);
            exportComponent.getClassExports().add(cEx);
        }

        checkSize(in, exportComponent);
View Full Code Here


     * @throws fr.xlim.ssd.capmanipulator.library.exceptions.UnableToReadCapFileException
     *
     */
    public ClassExportsInfo load(CapInputStream in) throws UnableToReadCapFileException {

        ClassExportsInfo classExportsInfo = new ClassExportsInfo();

        classExportsInfo.setClassOffset(in.readShort());
        classExportsInfo.setStaticFieldCount(in.readByte());
        classExportsInfo.setStaticMethodCount(in.readByte());

        classExportsInfo.setStaticFieldOffsets(new ArrayList<Short>(classExportsInfo.getStaticFieldCount()));

        for (int i = 0; i < classExportsInfo.getStaticFieldCount(); i++) {
            classExportsInfo.getStaticFieldOffsets().add(in.readShort());
        }

        classExportsInfo.setStaticMethodOffsets(new ArrayList<Short>(classExportsInfo.getStaticMethodCount()));

        for (int i = 0; i < classExportsInfo.getStaticMethodCount(); i++) {
            classExportsInfo.getStaticMethodOffsets().add(in.readShort());
        }

        return classExportsInfo;
    }
View Full Code Here

TOP

Related Classes of fr.xlim.ssd.capmanipulator.library.ClassExportsInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.