Package fr.xlim.ssd.capmanipulator.library.exceptions

Examples of fr.xlim.ssd.capmanipulator.library.exceptions.UnableToReadCapFileException


            byteRead += 4;
            totalByteRead += 4;
            return dataInputStream.readInt();
        } catch (IOException ex) {
            logger.error("Cannot read next int", ex);
            throw new UnableToReadCapFileException("Cannot read next int", ex);
        }
    }
View Full Code Here


        checkLoaded();
        try {
            dataInputStream.close();
        } catch (IOException ex) {
            logger.error("Cannot close stream", ex);
            throw new UnableToReadCapFileException("Cannot close stream", ex);
        }
    }
View Full Code Here

        try {
            totalByteRead += size;
            dataInputStream.skipBytes(size);
        } catch (IOException ex) {
            logger.error("Cannot skip {} bytes", size, ex);
            throw new UnableToReadCapFileException("Cannot skip bytes", ex);
        }
    }
View Full Code Here

    protected void checkSize(CapInputStream stream, Component component) throws UnableToReadCapFileException {
        // we check that the number of byte Read is the same that size
        if (stream.getByteRead() != component.getSize()) {
            logger.error("element size ({}) different from size read ({})", component.getSize(), stream.getByteRead());
            throw new UnableToReadCapFileException("element size different from size read");
        }
    }
View Full Code Here

TOP

Related Classes of fr.xlim.ssd.capmanipulator.library.exceptions.UnableToReadCapFileException

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.