Package com.github.stephenc.javaisotools.iso9660

Examples of com.github.stephenc.javaisotools.iso9660.ISO9660RootDirectory


        try {
            if (inputDirectory.isDirectory()) {
                root.addContentsRecursively(inputDirectory);
            }

            StreamHandler streamHandler = new ISOImageFileHandler(isoFile);
            CreateISO iso = new CreateISO(streamHandler, root);
            ISO9660Config iso9660Config = new ISO9660Config();
            iso9660Config.allowASCII(allowASCII.booleanValue());
            iso9660Config.setInterchangeLevel(interchangeLevel.intValue());
            iso9660Config.restrictDirDepthTo8(restrictDirDepthTo8.booleanValue());
View Full Code Here


                        getBootPlatformID(), bootImageID, bootImageSectorCount,
                        bootImageLoadSegment);
                elToritoConfig.setGenBootInfoTable(genBootInfoTable);
            }

            CreateISO iso = new CreateISO(new ISOImageFileHandler(destFile), root);
            iso.process(iso9660Config, rrConfig, jolietConfig, elToritoConfig);
            log("Successfully created ISO image " + destFile + ".");
        } catch (ConfigException ce) {
            throw new BuildException(ce);
        } catch (Exception e) {
View Full Code Here

            doImage();
        }
    }

    private void doBVD() throws HandlerException {
        super.startElement(new LogicalSectorElement("BR"));

        LayoutHelper helper = new ElToritoLayoutHelper(this);
        BootRecord br = new BootRecord(this, helper);
        br.setMetadata(config);
        br.doBR();
View Full Code Here

        super.endElement();
    }

    private void doCatalog() throws HandlerException {
        super.startElement(new LogicalSectorElement("BCAT"));

        // Write and close Boot Catalog Location Fixup
        long position = mark();
        int location = (int) (position / ISO9660Constants.LOGICAL_BLOCK_SIZE);
        bootCatalogLocation.data(new LSBFWordDataReference(location));
View Full Code Here

        super.endElement();
    }

    private void doImage() throws HandlerException {
        super.startElement(new LogicalSectorElement("BIMG"));

        // Write and close Boot Image Location Fixup
        long position = mark();
        int location = (int) (position / ISO9660Constants.LOGICAL_BLOCK_SIZE);
        bootImageLocation.data(new LSBFWordDataReference(location));
View Full Code Here

            factory.doDRA();
        }
    }

    private void doSVD() throws HandlerException {
        super.startElement(new LogicalSectorElement("SVD"));

        SupplementaryVolumeDescriptor svd = new SupplementaryVolumeDescriptor(this, helper);
        svd.setMetadata(config);
        volumeFixups.putAll(svd.doSVD());
View Full Code Here

        byte[] bytes = helper.pad(volumeId, 32);
        return new ByteArrayDataReference(bytes);
    }

    private BothShortDataReference getVolumeSetSize() {
        return new BothShortDataReference(volSetSize);
    }
View Full Code Here

    private BothShortDataReference getVolumeSetSize() {
        return new BothShortDataReference(volSetSize);
    }

    private BothShortDataReference getVolumeSeqNo() {
        return new BothShortDataReference(volSeqNo);
    }
View Full Code Here

    private BothShortDataReference getVolumeSeqNo() {
        return new BothShortDataReference(volSeqNo);
    }

    private BothShortDataReference getLogicalBlockSize() {
        return new BothShortDataReference(ISO9660Constants.LOGICAL_BLOCK_SIZE);
    }
View Full Code Here

        // Interleave Gap Size: 0 (no interleaving)
        streamHandler.data(new ByteDataReference(0));
        length += 1;

        // Volume Sequence Number
        streamHandler.data(new BothShortDataReference(volSeqNo));
        length += 4;

        // Length of File Identifier
        streamHandler.data(new ByteDataReference(filenameDataReference.getLength()));
        length += 1;
View Full Code Here

TOP

Related Classes of com.github.stephenc.javaisotools.iso9660.ISO9660RootDirectory

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.