Package com.github.stephenc.javaisotools.sabre

Examples of com.github.stephenc.javaisotools.sabre.HandlerException


            Fixup fixup =
                    new FileFixup(new RandomAccessFile(myOutputFile, "rw"), position, myDataReference.getLength());
            data(myDataReference);
            return fixup;
        } catch (FileNotFoundException e) {
            throw new HandlerException(e);
        }
    }
View Full Code Here


    private DataReference getBootMediaType(int bootMediaType) throws HandlerException {
        if (bootMediaType >= 0 && bootMediaType <= 4) {
            return new ByteDataReference(bootMediaType);
        }
        throw new HandlerException("Invalid Boot Media Type: " + bootMediaType);
    }
View Full Code Here

            throws HandlerException {
        int bits = 0;
        if (bootMediaType >= 0 && bootMediaType <= 4) {
            bits = bootMediaType;
        } else {
            throw new HandlerException("Invalid Boot Media Type: " + bootMediaType);
        }

        if (entryExtFollows) {
            // Set bit 5
            bits &= 1 << 4;
View Full Code Here

                    duplicates.clear();
                }
                addDuplicate(duplicates, file.getName(), file.getVersion());
                checkPathLength(file.getISOPath());
            } else {
                throw new HandlerException("Neither file nor directory: " + object);
            }
        }
    }
View Full Code Here

        init();
        if (file.isDirectory()) {
            this.name = file.getName();
            this.lastModified = file.lastModified();
        } else {
            throw new HandlerException("Not a directory: " + file);
        }
    }
View Full Code Here

        if (filename.length() > 64) {
            filename = filename.substring(0, 64);
        }

        if (filename.length() == 0) {
            throw new HandlerException(getID() + ": Empty directory name encountered.");
        }

        setFilename(dir, filename);
    }
View Full Code Here

        String filename = normalize(file.getFilename());
        String extension = normalize(file.getExtension());
        file.enforceDotDelimiter(FORCE_DOT_DELIMITER);

        if (filename.length() == 0 && extension.length() == 0) {
            throw new HandlerException(getID() + ": Empty file name encountered.");
        }

        if (file.enforces8plus3()) {
            if (filename.length() > 8) {
                filename = filename.substring(0, 8);
View Full Code Here

    public void startDocument() throws HandlerException {
        try {
            this.contentHandler.startElement(this.namespace, "root", this.prefix + ":root", null);
        } catch (SAXException e) {
            throw new HandlerException(e);
        }
    }
View Full Code Here

        try {
            this.elements.push(element);
            this.contentHandler
                    .startElement(this.namespace, element.toString(), this.prefix + ":" + element.toString(), null);
        } catch (SAXException e) {
            throw new HandlerException(e);
        }
    }
View Full Code Here

            data = new String(buffer);
            data = StringEscapeUtils.escapeJava(data);
            this.contentHandler.characters(data.toCharArray(), 0, data.length());
        } catch (SAXException e) {
            throw new HandlerException(e);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
View Full Code Here

TOP

Related Classes of com.github.stephenc.javaisotools.sabre.HandlerException

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.