Examples of UnableToReadCapFileException


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

            }

            checkSize(in, constantPoolComponent);

        } catch (UnknownTagException e) {
            throw new UnableToReadCapFileException("unknow tag found", e);
        }

        return constantPoolComponent;
    }
View Full Code Here

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

            }

            return methodInfo;

        } catch (UnknownFlagException e) {
            throw new UnableToReadCapFileException("unknow access flag");
        }
    }
View Full Code Here

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


            default:
                if (!lCustomTag.contains(tag)) {
                    logger.error("Unknown component tag found: {}", tag);
                    throw new UnableToReadCapFileException("unknown tag :" + tag);
                } else {
                    inputStream.skipBytes(inputStream.readShort());
                }
        }
    }
View Full Code Here

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

                    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

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

            try {
                capSize = capFile.length();
                return new FileInputStream(capFile);
            } catch (FileNotFoundException e) {
                logger.error("Cannot found CAP file", e);
                throw new UnableToReadCapFileException("cannot found CAP file", e);
            }
        } else {
            capSize = dataCapFile.length;
            return new ByteArrayInputStream(dataCapFile);
        }
View Full Code Here

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

            assert dataInputStream != null;

        } catch (IOException e) {
            logger.error("Cannot read CAP file", e);
            throw new UnableToReadCapFileException("cannot read CAP file", e);
        }
    }
View Full Code Here

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

                assert zipEntry != null;
                logger.trace("found next component in JAR file");
                return true;
            } catch (IOException ex) {
                logger.error("Cannot get next component from JAR file", ex);
                throw new UnableToReadCapFileException("Cannot get next component from JAR file", ex);
            }
        } else {
            logger.trace("Read {} bytes in CAP file, file size is {}", totalByteRead, capSize);
            assert totalByteRead <= capSize;
            if (totalByteRead == capSize) {
View Full Code Here

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

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

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

    }

    private void checkLoaded() throws UnableToReadCapFileException {
        if (dataInputStream == null) {
            logger.error("cap input stream has not been loaded, please call load() before");
            throw new UnableToReadCapFileException("cap input stream has not been loaded");
        }
    }
View Full Code Here

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

            byteRead += 2;
            totalByteRead += 2;
            return dataInputStream.readShort();
        } catch (IOException ex) {
            logger.error("Cannot read next short", ex);
            throw new UnableToReadCapFileException("Cannot read next short", ex);
        }

    }
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.