Package com.github.stephenc.javaisotools.iso9660

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


      ISO9660File file12 = new ISO9660File("test/tux.gif", 12);
      root.addFile(file12);
    }

    // ISO9660 support
    ISO9660Config iso9660Config = new ISO9660Config();
    iso9660Config.allowASCII(false);
    iso9660Config.setInterchangeLevel(1);
    iso9660Config.restrictDirDepthTo8(true);
    iso9660Config.setPublisher("Jens Hatlak");
    iso9660Config.setVolumeID("ISO Test");
    iso9660Config.setDataPreparer("Jens Hatlak");
    iso9660Config.setCopyrightFile(new File("Copyright.txt"));
    iso9660Config.forceDotDelimiter(true);

    RockRidgeConfig rrConfig = null;
    if (enableRockRidge) {
      // Rock Ridge support
      rrConfig = new RockRidgeConfig();
View Full Code Here


            if (copyrightFile != null) {
                copyrightFileObj = new File(copyrightFile);
            }

            // ISO9660 support
            ISO9660Config iso9660Config = new ISO9660Config();
            iso9660Config.setVolumeID(name);
            iso9660Config.setSystemID(system);
            iso9660Config.setPublisher(publisher);
            iso9660Config.setDataPreparer(dataPreparer);
            iso9660Config.allowASCII(allowASCII);
            iso9660Config.restrictDirDepthTo8(restrictDirDepthTo8);
            iso9660Config.forceDotDelimiter(forceDotDelimiter);
            iso9660Config.setInterchangeLevel(interchangeLevel);
            iso9660Config.setPadEnd(padEnd);
            if (copyrightFileObj != null) {
                iso9660Config.setCopyrightFile(copyrightFileObj);
            }

            // Rock Ridge support
            RockRidgeConfig rrConfig = null;
            if (enableRockRidge) {
View Full Code Here

      }

      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);
      iso9660Config.restrictDirDepthTo8(true);
      iso9660Config.forceDotDelimiter(true);
      applyConfig(iso9660Config);
      RockRidgeConfig rrConfig = new RockRidgeConfig();
      rrConfig.setMkisofsCompatibility(false);
      rrConfig.hideMovedDirectoriesStore(true);
      rrConfig.forcePortableFilenameCharacterSet(true);
View Full Code Here

                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());
            iso9660Config.forceDotDelimiter(forceDotDelimiter.booleanValue());
            iso9660Config.setInterchangeLevel(interchangeLevel.intValue());
            iso9660Config.setPadEnd(padEnd.booleanValue());
            applyConfig(iso9660Config);

            RockRidgeConfig rrConfig = null;

            if (enableRockRidge.booleanValue()) {
View Full Code Here

            if (copyrightFile != null) {
                copyrightFileObj = new File(copyrightFile);
            }

            // ISO9660 support
            ISO9660Config iso9660Config = new ISO9660Config();
            iso9660Config.setVolumeID(name);
            iso9660Config.setSystemID(system);
            iso9660Config.setPublisher(publisher);
            iso9660Config.setDataPreparer(dataPreparer);
            iso9660Config.allowASCII(allowASCII);
            iso9660Config.restrictDirDepthTo8(restrictDirDepthTo8);
            iso9660Config.forceDotDelimiter(forceDotDelimiter);
            iso9660Config.setInterchangeLevel(interchangeLevel);
            iso9660Config.setPadEnd(padEnd);
            if (copyrightFileObj != null) {
                iso9660Config.setCopyrightFile(copyrightFileObj);
            }

            // Rock Ridge support
            RockRidgeConfig rrConfig = null;
            if (enableRockRidge) {
View Full Code Here

        streamHandler.data(getFile(abstractFile));
        // Bibliographic File Identifier: 37 bytes
        streamHandler.data(getFile(bibFile));

        // Volume Creation Date and Time: 17 bytes
        streamHandler.data(new ISO9660DateDataReference(createDate));
        // Volume Modification Date and Time: 17 bytes
        streamHandler.data(new ISO9660DateDataReference(modDate));
        // Volume Expiration Date and Time: 17 bytes
        streamHandler.data(new ISO9660DateDataReference(expireDate));
        // Volume Effective Date and Time: 17 bytes
        streamHandler.data(new ISO9660DateDataReference(effectiveDate));

        // File Structure Version
        streamHandler.data(getFileStructureVersion());

        // Reserved Field
View Full Code Here

        return memory;
    }

    private void doRootDR(HashMap memory) throws HandlerException {
        ISO9660DirectoryRecord rddr =
                new ISO9660DirectoryRecord(streamHandler, ISO9660Constants.FI_ROOT, helper.getRoot(), helper);
        HashMap drMemory = rddr.doDR();

        // Length of Directory Record
        Fixup drLengthFixup = (Fixup) drMemory.get("drLengthFixup");
        int drLength = ((Integer) drMemory.get("drLength")).intValue();
        drLengthFixup.data(new ByteDataReference(drLength));
View Full Code Here

        checkMetadataFiles();

        // Use a copy of the original root for Joliet
        ISO9660RootDirectory jolietRoot = (ISO9660RootDirectory) root.clone();
        this.helper = new JolietLayoutHelper(this, jolietRoot);
        this.factory = new ISO9660Factory(this, config, helper, jolietRoot, volumeFixups);

        factory.applyNamingConventions();
    }
View Full Code Here

        ElToritoConfig.PLATFORM_ID_X86, "isoTest", 4,
        ElToritoConfig.LOAD_SEGMENT_7C0);
    }

    // Create ISO
    StreamHandler streamHandler = new ISOImageFileHandler(outfile);
    CreateISO iso = new CreateISO(streamHandler, root);
    iso.process(iso9660Config, rrConfig, jolietConfig, elToritoConfig);
    System.out.println("Done. File is: " + outfile);
  }
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

TOP

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

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.