Package fr.xlim.ssd.capmanipulator.library

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


        short nbByteRead = (short) in.getByteRead();


        //we will read until the end of the componentTab
        while (in.getByteRead() < DescComp.getSize()) {
            TypeDescriptor t = new TypeDescriptorRead().load(in);
            typeDescriptorInfo.getTypeDesc().put(offset, t);
            offset += (in.getByteRead() - nbByteRead);
            nbByteRead = (short) in.getByteRead();
        }
View Full Code Here


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

        TypeDescriptor typeDescriptor = new TypeDescriptor();

        // nibbleCount reading
        typeDescriptor.setNibbleCount(in.readByte());

        // type array reading
        typeDescriptor.getType().clear();
        // there is (nibbleCount +1)/2 elements in type array
        for (int i = 0; i < (typeDescriptor.getNibbleCount() + 1) / 2; i++) {
            typeDescriptor.getType().add(in.readByte());
        }

        return typeDescriptor;
    }
View Full Code Here

TOP

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

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.