Package com.github.stephenc.javaisotools.sabre

Examples of com.github.stephenc.javaisotools.sabre.Fixup.data()


        svd.setMetadata(config);
        volumeFixups.putAll(svd.doSVD());

        // Set Volume Flags to 0 (Unused Field)
        Fixup volumeFlags = (Fixup) volumeFixups.get("volumeFlagsFixup");
        volumeFlags.data(new ByteDataReference(0));
        volumeFlags.close();
        volumeFixups.remove("volumeFlagsFixup");

        // Set Escape Sequences for UCS-2 level
        Fixup escapeSequences = (Fixup) volumeFixups.get("escapeSequencesFixup");
View Full Code Here


        volumeFlags.close();
        volumeFixups.remove("volumeFlagsFixup");

        // Set Escape Sequences for UCS-2 level
        Fixup escapeSequences = (Fixup) volumeFixups.get("escapeSequencesFixup");
        escapeSequences.data(config.getUCS2LevelEscapeSequence());
        escapeSequences.close();
        volumeFixups.remove("escapeSequencesFixup");

        super.endElement();
    }
View Full Code Here

    }

    public void endDocument() throws HandlerException {
        // Write and close Volume Space Size Fixup
        Fixup volumeSpaceSizeFixup = (Fixup) volumeFixups.get("volumeSpaceSizeFixup");
        volumeSpaceSizeFixup.data(new BothWordDataReference(helper.getCurrentLocation()));
        volumeSpaceSizeFixup.close();
        volumeFixups.remove("volumeSpaceSizeFixup");

        super.endDocument();
    }
View Full Code Here

    public HashMap doPVD() throws HandlerException {
        HashMap memory = doStandardVD();

        // Set Volume Flags to 0 (Unused Field)
        Fixup volumeFlags = (Fixup) memory.get("volumeFlagsFixup");
        volumeFlags.data(new ByteDataReference(0));
        volumeFlags.close();
        memory.remove("volumeFlagsFixup");

        // Set Escape Sequences to all 0 (Unused Field)
        Fixup escapeSequences = (Fixup) memory.get("escapeSequencesFixup");
View Full Code Here

        volumeFlags.close();
        memory.remove("volumeFlagsFixup");

        // Set Escape Sequences to all 0 (Unused Field)
        Fixup escapeSequences = (Fixup) memory.get("escapeSequencesFixup");
        escapeSequences.data(new ThreeByteDataReference(0));
        escapeSequences.close();
        memory.remove("escapeSequencesFixup");

        return memory;
    }
View Full Code Here

        HashMap drMemory = rddr.doDR();

        // Length of Directory Record
        Fixup drLengthFixup = (Fixup) drMemory.get("drLengthFixup");
        int drLength = ((Integer) drMemory.get("drLength")).intValue();
        drLengthFixup.data(new ByteDataReference(drLength));
        drLengthFixup.close();

        // Root Directory Location
        Fixup rootDirLocation = (Fixup) drMemory.get("drLocationFixup");
        memory.put("rootDirLocationFixup", rootDirLocation);
View Full Code Here

            volumeFixups.put("rripERLocationFixup", ceMemory.get("ceLocationFixup"));
            volumeFixups.put("rripERLengthFixup", ceMemory.get("ceLengthFixup"));

            // Write and close ER Offset Fixup
            Fixup rripEROffsetFixup = (Fixup) ceMemory.get("ceOffsetFixup");
            rripEROffsetFixup.data(new BothWordDataReference(0));
            rripEROffsetFixup.close();
        }

        // Update Directory Record Length
        return finalizeDR(memory, helper.getDifferenceTo(position));
View Full Code Here

            ISO9660Directory dir = (ISO9660Directory) it.next();

            // Write and close Location Fixup
            Fixup locationFixup = (Fixup) fixups.get(dir);
            int location = ((Integer) locations.get(dir)).intValue();
            locationFixup.data(new BothWordDataReference(location));
            locationFixup.close();
        }
    }

    private void doCA() throws HandlerException {
View Full Code Here

        streamHandler.startElement(new LogicalSectorElement("CA"));
        int location = helper.getCurrentLocation();

        // Write and close RRIP ER Location Fixup
        Fixup rripERLocationFixup = (Fixup) volumeFixups.get("rripERLocationFixup");
        rripERLocationFixup.data(new BothWordDataReference(location));
        rripERLocationFixup.close();

        // Write ER Entry
        rripFactory.doEREntry();
View Full Code Here

        // Write ST Entry and compute length
        int erLength = doST(helper.getDifferenceTo(position));

        // Write and close RRIP ER Length Fixup
        Fixup rripERLengthFixup = (Fixup) volumeFixups.get("rripERLengthFixup");
        rripERLengthFixup.data(new BothWordDataReference(erLength));
        rripERLengthFixup.close();

        // Process unfinished NM Entries
        int offset = erLength;
        Iterator it = unfinishedNMEntries.iterator();
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.