Package fr.xlim.ssd.capmanipulator.library

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


public class ImportComponentRead extends ComponentRead {

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

        ImportComponent importComponent = new ImportComponent();

        //we first read tag and size
        super.load((byte) ComponentEnum.IMPORT_COMPONENT.getValue(), in, importComponent);

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

        //count reading
        importComponent.setCount(in.readByte());

        importComponent.setPackages(new ArrayList<PackageInfo>());

        //packages reading
        for (int i = 0; i < importComponent.getCount(); i++) {
            PackageInfo pInf = new PackageInfoRead().load(in);
            importComponent.getPackages().add(pInf);
        }

        checkSize(in, importComponent);

        return importComponent;
View Full Code Here


                break;


            case IMPORT_COMPONENT:
                logger.debug(LogType.COMPONENT.getMarker(), "Found Import Component");
                ImportComponent imp = (ImportComponent) new ImportComponentRead().load(inputStream);
                capFile.getComponents().add(imp);
                break;


            case CONSTANT_POOL_COMPONENT:
View Full Code Here

TOP

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

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.