Package com.github.stephenc.javaisotools.iso9660.volumedescriptors

Examples of com.github.stephenc.javaisotools.iso9660.volumedescriptors.PrimaryVolumeDescriptor


        ISO9660Directory parent = directories.get(getParentPath(e
            .getKey()));
        parent.addFile(e.getValue());
      }

      StreamHandler streamHandler = new ISOImageFileHandler(new File(
          dest.getParentFile(), dest.getName()));
      CreateISO iso = new CreateISO(streamHandler, root);
      ISO9660Config iso9660Config = new ISO9660Config();
      iso9660Config.allowASCII(false);
      iso9660Config.setInterchangeLevel(1);
View Full Code Here


        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

TOP

Related Classes of com.github.stephenc.javaisotools.iso9660.volumedescriptors.PrimaryVolumeDescriptor

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.