Examples of BothWordDataReference


Examples of com.github.stephenc.javaisotools.iso9660.sabre.impl.BothWordDataReference

    private void doRootDirFixups(HashMap parentMapper) throws HandlerException {
        ParentInfo parentInfo = (ParentInfo) parentMapper.get(root);

        // Write and close Root Directory Location Fixup
        Fixup rootDirLocationFixup = (Fixup) volumeFixups.get("rootDirLocationFixup");
        rootDirLocationFixup.data(new BothWordDataReference(parentInfo.location));
        rootDirLocationFixup.close();
        volumeFixups.remove("rootDirLocationFixup");

        // Write and close Root Directory Length Fixup
        Fixup rootDirLengthFixup = (Fixup) volumeFixups.get("rootDirLengthFixup");
        rootDirLengthFixup.data(new BothWordDataReference(parentInfo.length));
        rootDirLengthFixup.close();
        volumeFixups.remove("rootDirLengthFixup");
    }
View Full Code Here

Examples of com.github.stephenc.javaisotools.iso9660.sabre.impl.BothWordDataReference

        dotInfo.location = location;
        dotInfo.length = length;
        parentMapper.put(dir, dotInfo);

        // Write and close "dot" Fixups
        dotLocationFixup.data(new BothWordDataReference(location));
        dotLocationFixup.close();
        dotLengthFixup.data(new BothWordDataReference(length));
        dotLengthFixup.close();

        // Retrieve Parent Location and Length from parentMapper
        ParentInfo dotdotInfo = (ParentInfo) parentMapper.get(dir.getParentDirectory());

        // Write and close "dotdot" Fixups
        dotdotLocationFixup.data(new BothWordDataReference(dotdotInfo.location));
        dotdotLocationFixup.close();
        dotdotLengthFixup.data(new BothWordDataReference(dotdotInfo.length));
        dotdotLengthFixup.close();

        // Write and close Fixups of linking Directory Records
        DirFixupPair fixups = (DirFixupPair) dirFixups.get(dir);
        if (fixups != null) {
            // Write and close Location Fixup
            fixups.location.data(new BothWordDataReference(location));
            fixups.location.close();

            // Write and close Length Fixup
            fixups.length.data(new BothWordDataReference(length));
            fixups.length.close();
        }

        // Write and close Type L Path Table Fixup
        Fixup typeLPTDirLocation = (Fixup) typeLPTFixups.get(dir);
View Full Code Here

Examples of com.github.stephenc.javaisotools.iso9660.sabre.impl.BothWordDataReference

        Fixup locationFixup = (Fixup) memory.get("drLocationFixup");
        emptyFileFixups.add(locationFixup);

        // Write and close Length Fixup
        Fixup dataLengthFixup = (Fixup) memory.get("drDataLengthFixup");
        dataLengthFixup.data(new BothWordDataReference(0));
        dataLengthFixup.close();

        return memory;
    }
View Full Code Here

Examples of com.github.stephenc.javaisotools.iso9660.sabre.impl.BothWordDataReference

        }
        fileFixups.put(file.getID(), locationFixup);

        // Write and close Length Fixup
        Fixup dataLengthFixup = (Fixup) memory.get("drDataLengthFixup");
        dataLengthFixup.data(new BothWordDataReference(file.length()));
        dataLengthFixup.close();

        return memory;
    }
View Full Code Here

Examples of com.github.stephenc.javaisotools.iso9660.sabre.impl.BothWordDataReference

        } else {
            locationFixups.put(file.getContentID(), new Integer(location));
        }

        // Write and close File Fixup
        locationFixup.data(new BothWordDataReference(location));
        locationFixup.close();
    }
View Full Code Here

Examples of com.github.stephenc.javaisotools.iso9660.sabre.impl.BothWordDataReference

            streamHandler.startElement(new LogicalSectorElement("DUMMY"));

            // Write and close Empty File Fixup
            int location = helper.getCurrentLocation();
            Fixup locationFixup = (Fixup) it.next();
            locationFixup.data(new BothWordDataReference(location));
            locationFixup.close();

            streamHandler.endElement();
        }
    }
View Full Code Here

Examples of com.github.stephenc.javaisotools.iso9660.sabre.impl.BothWordDataReference

        super(streamHandler);
    }

    public void doPXEntry(int fileModes, int fileLinks, int uid, int gid, long serialNumber) throws HandlerException {
        streamHandler.startElement(new SystemUseEntryElement("PX", 1));
        streamHandler.data(new BothWordDataReference(fileModes));
        streamHandler.data(new BothWordDataReference(fileLinks));
        streamHandler.data(new BothWordDataReference(uid));
        streamHandler.data(new BothWordDataReference(gid));

        if (!MKISOFS_COMPATIBILITY) {
            // RRIP 1.12 includes the Serial Number field, RRIP 1.09 does not
            streamHandler.data(new BothWordDataReference(serialNumber));
        }

        streamHandler.endElement();
    }
View Full Code Here

Examples of com.github.stephenc.javaisotools.iso9660.sabre.impl.BothWordDataReference

        streamHandler.endElement();
    }

    public void doPNEntry(int deviceNumberHigh, int deviceNumberLow) throws HandlerException {
        streamHandler.startElement(new SystemUseEntryElement("PN", 1));
        streamHandler.data(new BothWordDataReference(deviceNumberHigh));
        streamHandler.data(new BothWordDataReference(deviceNumberLow));
        streamHandler.endElement();
    }
View Full Code Here

Examples of com.github.stephenc.javaisotools.iso9660.sabre.impl.BothWordDataReference

        streamHandler.endElement();
    }

    public Fixup doCLEntry() throws HandlerException {
        streamHandler.startElement(new SystemUseEntryElement("CL", 1));
        Fixup childLocationFixup = streamHandler.fixup(new BothWordDataReference(0));
        streamHandler.endElement();

        return childLocationFixup;
    }
View Full Code Here

Examples of com.github.stephenc.javaisotools.iso9660.sabre.impl.BothWordDataReference

        return childLocationFixup;
    }

    public Fixup doPLEntry() throws HandlerException {
        streamHandler.startElement(new SystemUseEntryElement("PL", 1));
        Fixup parentLocationFixup = streamHandler.fixup(new BothWordDataReference(0));
        streamHandler.endElement();

        return parentLocationFixup;
    }
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.