Package com.github.stephenc.javaisotools.sabre

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


        streamHandler.data(new ByteDataReference(continues ? 1 : 0));
    }

    public void doComponentRecord(int flags) throws HandlerException {
        if (flags != CR_CONTINUES && flags != CR_CURRENT && flags != CR_PARENT && flags != CR_ROOT) {
            throw new HandlerException("Invalid Rock Ridge Component Record flags combination: " + flags);
        }
        streamHandler.data(new ByteDataReference(flags));
        streamHandler.data(new ByteDataReference(0));
    }
View Full Code Here


    public void doNMEntry(int flags, DataReference name) throws HandlerException {
        streamHandler.startElement(new SystemUseEntryElement("NM", 1));

        if (flags != 0 && flags != NM_CONTINUES && flags != NM_CURRENT && flags != NM_PARENT) {
            throw new HandlerException("Invalid Rock Ridge directory flags combination: " + flags);
        }
        streamHandler.data(new ByteDataReference(flags));

        streamHandler.data(name);
        streamHandler.endElement();
View Full Code Here

    }

    private void checkTFType(int type) throws HandlerException {
        if (type != TF_CREATION && type != TF_MODIFY && type != TF_ACCESS && type != TF_ATTRIBUTES
                && type != TF_BACKUP && type != TF_EXPIRATION && type != TF_EFFECTIVE) {
            throw new HandlerException("Invalid Rock Ridge Timestamp type: " + type);
        }
    }
View Full Code Here

    }

    public void doRREntry(int flags) throws HandlerException {
        if (MKISOFS_COMPATIBILITY) {
            if (flags < 0 || flags > 255) {
                throw new HandlerException("Invalid RR flags: " + flags);
            }

            streamHandler.startElement(new SystemUseEntryElement("RR", 1));
            streamHandler.data(new ByteDataReference(flags));
            streamHandler.endElement();
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.