Package com.github.stephenc.javaisotools.sabre

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


        // Sector Count
        streamHandler.data(new LSBFShortDataReference(sectorCount));

        // Load RBA
        Fixup loadRBA = streamHandler.fixup(new LSBFWordDataReference(0));

        // Unused (19 bytes)
        streamHandler.data(new EmptyByteArrayDataReference(19));

        return loadRBA;
View Full Code Here


        // Sector Count
        streamHandler.data(new LSBFShortDataReference(sectorCount));

        // Load RBA
        Fixup loadRBA = streamHandler.fixup(new LSBFWordDataReference(0));

        // Selection criteria type
        streamHandler.data(new ByteDataReference(selectionCriteriaType));

        // Vendor unique selection criteria (18 bytes): handle externally
View Full Code Here

        }
    }

    public Fixup fixup(DataReference myDataReference) throws HandlerException {
        try {
            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

        SupplementaryVolumeDescriptor svd = new SupplementaryVolumeDescriptor(this, helper);
        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");
        escapeSequences.data(config.getUCS2LevelEscapeSequence());
        escapeSequences.close();
        volumeFixups.remove("escapeSequencesFixup");

        super.endElement();
    }
View Full Code Here

        super.endElement();
    }

    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

            this.chainedContentHandler.data(reference);
        }
    }

    public Fixup fixup(DataReference reference) throws HandlerException {
        Fixup fixup = null;

        // Call chained content handler
        if (this.chainedContentHandler != null) {
            fixup = this.chainedContentHandler.fixup(reference);
        }
View Full Code Here

            }
        }
    }

    public synchronized Fixup get(int index) {
        Fixup result = null;
        long position = 0;
        long available = 0;

        try {
            if (index < this.fixupCount) {
View Full Code Here

            }
        }
    }

    public Fixup fixup(DataReference reference) throws HandlerException {
        Fixup fixup = null;
        fixup = new FileFixup(this.randomAccessFile, this.position, reference.getLength());
        data(reference);
        return fixup;
    }
View Full Code Here

        // Delegate to super class
        super.data(reference);
    }

    public Fixup fixup(DataReference reference) throws HandlerException {
        Fixup fixup = null;

        // FIXME: Think about copying fixups!

        // Delegate to super class
        fixup = super.fixup(reference);
View Full Code Here

        // Delegate to super class
        super.data(reference);
    }

    public Fixup fixup(DataReference reference) throws HandlerException {
        Fixup fixup = null;
        long length = 0;

        // Show what is happening
        length = reference.getLength();
        if (length == -1) {
View Full Code Here

TOP

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

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.