Package com.github.stephenc.javaisotools.iso9660.sabre.impl

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


        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

        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

        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

        }
    }

    public void doSFEntry(long virtualFileSizeHigh, long virtualFileSizeLow, int tableDepth) throws HandlerException {
        streamHandler.startElement(new SystemUseEntryElement("SF", 1));
        streamHandler.data(new BothWordDataReference(virtualFileSizeHigh));
        streamHandler.data(new BothWordDataReference(virtualFileSizeLow));
        streamHandler.data(new ByteDataReference(tableDepth));
        streamHandler.endElement();
    }
View Full Code Here

        // Platform ID
        streamHandler.data(new ByteDataReference(platformID));
        sum += platformID << 8;

        // Reserved (2 bytes)
        streamHandler.data(new EmptyByteArrayDataReference(2));

        // ID string (24 bytes)
        byte[] idStringData = pad(idString, 24);
        streamHandler.data(new ByteArrayDataReference(idStringData));
        sum += stringWordSum(idStringData);
View Full Code Here

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

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

        return loadRBA;
    }
View Full Code Here

        // Volume Identifier: 32 bytes
        streamHandler.data(getVolumeId());

        // Unused Field: 8 bytes
        streamHandler.data(new EmptyByteArrayDataReference(8));

        // Volume Space Size
        Fixup vss = streamHandler.fixup(new BothWordDataReference(0));
        memory.put("volumeSpaceSizeFixup", vss);

        // Unused Field / Escape Sequences (SVD): 32 bytes
        Fixup es = streamHandler.fixup(new EmptyByteArrayDataReference(32));
        memory.put("escapeSequencesFixup", es);

        // Volume Set Size
        streamHandler.data(getVolumeSetSize());
View Full Code Here

        sum += stringWordSum(idStringData);

        // Checksum word
        sum += 0xAA55; // Key bytes
        int checksum = 0x10000 - sum;
        streamHandler.data(new LSBFShortDataReference(checksum));

        // Key byte (0x55)
        streamHandler.data(new ByteDataReference(0x55));

        // Key byte (0xAA)
View Full Code Here

        // Boot media type
        streamHandler.data(getBootMediaType(bootMediaType));

        // Load Segment: (0: use traditional segment of 0x7C0)
        streamHandler.data(new LSBFShortDataReference(loadSegment));

        // System Type
        streamHandler.data(new ByteDataReference(systemType));

        // Unused byte
        streamHandler.data(new ByteDataReference(0));

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

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

        // Unused (19 bytes)
View Full Code Here

TOP

Related Classes of com.github.stephenc.javaisotools.iso9660.sabre.impl.BothWordDataReference

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.