Examples of StaticFieldSizeInfo


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

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

        // number of bytes in each of the 12 components in the CAP file
        directoryComponent.setComponentSize(new ArrayList<Short>());
        directoryComponent.setStaticFieldSize(new StaticFieldSizeInfo());
        directoryComponent.setCustomComponent(new ArrayList<CustomComponentInfo>());

        // componentSizes reading
        for (int i = 0; i < DirectoryComponent.COMPONENT_NUMBER; i++) {
            short size = in.readShort();
View Full Code Here

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

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

        StaticFieldSizeInfo staticFieldSizeInfo = new StaticFieldSizeInfo();

        // image size reading
        staticFieldSizeInfo.setImageSize(in.readShort());
        logger.trace("image size: {}", staticFieldSizeInfo.getImageSize());

        // array_init_count reading
        staticFieldSizeInfo.setArrayInitCount(in.readShort());
        logger.trace("array init count: {}", staticFieldSizeInfo.getArrayInitCount());

        // array_init_size
        staticFieldSizeInfo.setArrayInitSize(in.readShort());
        logger.trace("array init size: {}", staticFieldSizeInfo.getArrayInitSize());

        return staticFieldSizeInfo;
    }
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.