Examples of EmptyByteArrayDataReference


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

        // 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

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

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

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

        return loadRBA;
    }
View Full Code Here

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

        // 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

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

        Object element = elements.pop();
        if (element instanceof LogicalSectorElement) {
            // Pad to one logical block
            int pad =
                    (int) (ISO9660Constants.LOGICAL_SECTOR_SIZE - bytesWritten % ISO9660Constants.LOGICAL_SECTOR_SIZE);
            super.data(new EmptyByteArrayDataReference(pad));
        } else if (isSAElement(element)) {
            // Pad to 16 sectors
            int pad = (int) (16 * ISO9660Constants.LOGICAL_SECTOR_SIZE -
                    bytesWritten % 16 * ISO9660Constants.LOGICAL_SECTOR_SIZE);
            super.data(new EmptyByteArrayDataReference(pad));
        }
        super.endElement();
    }
View Full Code Here

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

    public void endDocument() throws HandlerException {
        if (padEnd) {
            // Pad to 150 sectors (like mkisofs -pad does)
            int pad = (int) (150 * ISO9660Constants.LOGICAL_SECTOR_SIZE -
                    bytesWritten % 16 * ISO9660Constants.LOGICAL_SECTOR_SIZE);
            super.data(new EmptyByteArrayDataReference(pad));
        }
        super.endDocument();
    }
View Full Code Here

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

        return memory;
    }

    public void doPDEntry(int paddingLength) throws HandlerException {
        streamHandler.startElement(new SystemUseEntryElement("PD", 1));
        streamHandler.data(new EmptyByteArrayDataReference(paddingLength));
        streamHandler.endElement();
    }
View Full Code Here

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

        streamHandler.data(source);
        streamHandler.endElement();
    }

    public void doEREntry(DataReference id, DataReference source, int version) throws HandlerException {
        doEREntry(id, new EmptyByteArrayDataReference(0), source, version);
    }
View Full Code Here

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

        int length = (int) ((streamHandler.mark() - position) % ISO9660Constants.LOGICAL_BLOCK_SIZE);
        int rest = ISO9660Constants.LOGICAL_BLOCK_SIZE - length;
        if (rest < 0xFF) {
            // Maybe not enough space to store another DR in this block
            // -> pad to end of block (see ISO9660:7.8.1.1)
            streamHandler.data(new EmptyByteArrayDataReference(rest));
        }
    }
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.