Examples of ExportComponent


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

public class ExportComponentRead extends ComponentRead {

    @Override
    public Component load(CapInputStream in) throws UnableToReadCapFileException {

        ExportComponent exportComponent = new ExportComponent();

        super.load((byte) ComponentEnum.EXPORT_COMPONENT.getValue(), in, exportComponent);

        //we reset the count of byte read to zero
        in.resetCount();

        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);

        return exportComponent;
View Full Code Here

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

                capFile.getComponents().add(rf);
                break;

            case EXPORT_COMPONENT:
                logger.debug(LogType.COMPONENT.getMarker(), "Found Export Component");
                ExportComponent ex = (ExportComponent) new ExportComponentRead().load(inputStream);
                capFile.getComponents().add(ex);
                // we add the offset to the method componentTab
                // contained in the export componentTab
                for (ClassExportsInfo cEx : ex.getClassExports()) {
                    Converter.addArrayToArray(cEx.getStaticMethodOffsets(), lOffset);
                }

                break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.