Package fr.xlim.ssd.capmanipulator.library

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


                // present
                if (lCustomTag.contains(tag)) {
                    logger.debug(LogType.COMPONENT.getMarker(), "Found Custom Component");
                    CustomComponentRead customComponentRead = new CustomComponentRead();
                    customComponentRead.setTag(tag);
                    CustomComponent customComponent = (CustomComponent) customComponentRead.load(inputStream);
                    capFile.getComponents().add(customComponent);
                } else {
                    logger.error("Unknown component tag found: {}", tag);
                    throw new UnableToReadCapFileException("unknown component tag");
                }
View Full Code Here


    private byte tag;

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

        CustomComponent customComponent = new CustomComponent();

        // we first read tag and size
        super.load(tag, in, customComponent);

        customComponent.setBytes(new ArrayList<Byte>());

        for (int i = 0; i < customComponent.getSize(); i++) {

            customComponent.getBytes().add(in.readByte());
        }

        checkSize(in, customComponent);

        return customComponent;
View Full Code Here

TOP

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

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.