Package fr.xlim.ssd.capmanipulator.library

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


     *
     * @throws java.io.IOException
     */
    public CustomComponentInfo load(CapInputStream in) throws UnableToReadCapFileException {

        CustomComponentInfo customComponentInfo = new CustomComponentInfo();

        // component_tag reading
        customComponentInfo.setComponentTag(in.readByte());

        // size reading
        customComponentInfo.setSize(in.readShort());

        // Aid length reading
        customComponentInfo.setAidLength(in.readByte());

        // aid reading
        customComponentInfo.getAid().clear();

        for (byte i = 0; i < customComponentInfo.getAidLength(); i++) {
            customComponentInfo.getAid().add(in.readByte());
        }

        return customComponentInfo;
    }
View Full Code Here


        directoryComponent.setCustomCount(in.readByte());
        logger.trace("custom count: {}", directoryComponent.getCustomCount());

        // customComponents reading
        for (byte i = 0; i < directoryComponent.getCustomCount(); i++) {
            CustomComponentInfo customComp = new CustomComponentInfoRead().load(in);
            directoryComponent.getCustomComponent().add(customComp);
        }

        checkSize(in, directoryComponent);
View Full Code Here

TOP

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

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.