Package com.github.stephenc.javaisotools.sabre

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


        super.startElement(myElement);
    }

    public void endElement()
            throws HandlerException {
        Element myElement = elementStack.pop();

        if (myElement.getId() == UDFElementType.DescriptorTag) {
            createAndPassDescriptorTag();
        }

        super.endElement();
    }
View Full Code Here


    public long mark() throws HandlerException {
        throw new HandlerException("Cannot mark position in SAX.");
    }

    public void endElement() throws HandlerException {
        Element element = null;

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

        super.startElement(myElement);
    }

    public void endElement()
            throws HandlerException {
        Element myElement = elementStack.pop();

        // handle volume recognition sequence
        if (myElement.getId() == SabreUDFElement.UDFElementType.VolumeRecognitionSequence) {
            createAndPassVRS();
        }
        // handle anchor volume descriptor pointer
        else if (myElement.getId() == SabreUDFElement.UDFElementType.AnchorVolumeDescriptorPointer) {
            createAndPassAVDP();
        }
        // handle primary volume descriptor
        else if (myElement.getId() == SabreUDFElement.UDFElementType.PrimaryVolumeDescriptor) {
            createAndPassPVD();
        }
        // handle partition descriptor
        else if (myElement.getId() == SabreUDFElement.UDFElementType.PartitionDescriptor) {
            createAndPassPD();
        }
        // handle logical volume descriptor
        else if (myElement.getId() == SabreUDFElement.UDFElementType.LogicalVolumeDescriptor) {
            createAndPassLVD();
        }
        // handle unallocated space descriptor
        else if (myElement.getId() == SabreUDFElement.UDFElementType.UnallocatedSpaceDescriptor) {
            createAndPassUSD();
        }
        // handle implementation use volume descriptor
        else if (myElement.getId() == SabreUDFElement.UDFElementType.ImplementationUseVolumeDescriptor) {
            createAndPassIUVD();
        }
        // handle terminationg descriptor
        else if (myElement.getId() == SabreUDFElement.UDFElementType.TerminatingDescriptor) {
            createAndPassTD();
        }
        // handle logical volume integrity descriptor
        else if (myElement.getId() == SabreUDFElement.UDFElementType.LogicalVolumeIntegrityDescriptor) {
            createAndPassLVID();
        }
        // handle fileset descriptor
        else if (myElement.getId() == SabreUDFElement.UDFElementType.FileSetDescriptor) {
            createAndPassFSD();
        }
        // handle file entry
        else if (myElement.getId() == SabreUDFElement.UDFElementType.FileEntry) {
            createAndPassFE();
        }
        // handle metadata file
        else if (myElement.getId() == SabreUDFElement.UDFElementType.MetadataFile) {
            createAndPassMetadataFile();
        }

        super.endElement();
    }
View Full Code Here

        super.endElement();
    }

    public void endElement() throws HandlerException {
        Element element = (Element) elements.pop();
        if (element instanceof ISO9660Element) {
            String id = (String) element.getId();
            if (id.equals("VDS")) {
                // Add VDST
                doVDST();
            }
        }
View Full Code Here

        length += reference.getLength();
        return super.fixup(reference);
    }

    public void endElement() throws HandlerException {
        Element element = (Element) elements.pop();
        if (element instanceof SystemUseEntryElement) {
            // Write and close Entry Length Fixup
            if (length > 255) {
                throw new RuntimeException("Invalid System Use Entry length: " + length);
            }
View Full Code Here

TOP

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

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.