Package de.tu_darmstadt.informatik.rbg.hatlak.iso9660.impl

Examples of de.tu_darmstadt.informatik.rbg.hatlak.iso9660.impl.CreateISO


        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) {
            e.printStackTrace();
View Full Code Here

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

      JolietConfig jolietConfig = new JolietConfig();
      jolietConfig.forceDotDelimiter(true);
      applyConfig(jolietConfig);

      iso.process(iso9660Config, rrConfig, jolietConfig, null);
    } catch (HandlerException e) {
      throw new ArchiverException(e.getMessage(), e);
    } catch (FileNotFoundException e) {
      throw new ArchiverException(e.getMessage(), e);
    } catch (ConfigException e) {
View Full Code Here

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

            RockRidgeConfig rrConfig = null;

            if (enableRockRidge.booleanValue()) {
              rrConfig = new RockRidgeConfig();
              rrConfig.setMkisofsCompatibility(mkisofsCompatibility.booleanValue());
              rrConfig.hideMovedDirectoriesStore(hideMovedDirectoriesStore.booleanValue());
              rrConfig.forcePortableFilenameCharacterSet(forcePortableFilenameCharacterSet.booleanValue());
            }

            JolietConfig jolietConfig = null;

            if (enableJoliet.booleanValue()) {
              jolietConfig = new JolietConfig();
              jolietConfig.forceDotDelimiter(forceDotDelimiter.booleanValue());
              applyConfig(jolietConfig);
            }

            // El Torito support
            ElToritoConfig elToritoConfig = null;
            if (bootImage != null) {
                this.getLog().info("El Torito support enabled.");
                elToritoConfig = new ElToritoConfig(bootImage, getBootEmulation(),
                        getBootPlatformID(), bootImageID, bootImageSectorCount,
                        bootImageLoadSegment);
                elToritoConfig.setGenBootInfoTable(genBootInfoTable);
            }

            iso.process(iso9660Config, rrConfig, jolietConfig, elToritoConfig);
        } catch (HandlerException e) {
            throw new MojoExecutionException(e.getMessage(), e);
        } catch (FileNotFoundException e) {
            throw new MojoExecutionException(e.getMessage(), e);
        } catch (ConfigException e) {
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) {
            e.printStackTrace();
View Full Code Here

     */
    private static void createDVDImage(final File src, final File dest) {

        if (dest == null || !dest.getName().endsWith(".iso")) {throw new IllegalArgumentException("dest must not be null and end in '.iso'");}

        final ISO9660RootDirectory root = new ISO9660RootDirectory();
        try {
            root.addContentsRecursively(src);
            final StreamHandler streamHandler = new ISOImageFileHandler(dest);
            CreateISO iso = new CreateISO(streamHandler, root);
            iso.process(new ISO9660Config(), new RockRidgeConfig(), new JolietConfig(), null);
        } catch (Exception e) {
            throw new RuntimeException("failed to create image", e);
View Full Code Here

        final ISO9660RootDirectory root = new ISO9660RootDirectory();
        try {
            root.addContentsRecursively(src);
            final StreamHandler streamHandler = new ISOImageFileHandler(dest);
            CreateISO iso = new CreateISO(streamHandler, root);
            iso.process(new ISO9660Config(), new RockRidgeConfig(), new JolietConfig(), null);
        } catch (Exception e) {
            throw new RuntimeException("failed to create image", e);
        }
    }
View Full Code Here

        final ISO9660RootDirectory root = new ISO9660RootDirectory();
        try {
            root.addContentsRecursively(src);
            final StreamHandler streamHandler = new ISOImageFileHandler(dest);
            CreateISO iso = new CreateISO(streamHandler, root);
            iso.process(new ISO9660Config(), new RockRidgeConfig(), new JolietConfig(), null);
        } catch (Exception e) {
            throw new RuntimeException("failed to create image", e);
        }
    }
View Full Code Here

        if (dest == null || !dest.getName().endsWith(".iso")) {throw new IllegalArgumentException("dest must not be null and end in '.iso'");}

        final ISO9660RootDirectory root = new ISO9660RootDirectory();
        try {
            root.addContentsRecursively(src);
            final StreamHandler streamHandler = new ISOImageFileHandler(dest);
            CreateISO iso = new CreateISO(streamHandler, root);
            iso.process(new ISO9660Config(), new RockRidgeConfig(), new JolietConfig(), null);
        } catch (Exception e) {
            throw new RuntimeException("failed to create image", e);
        }
View Full Code Here

TOP

Related Classes of de.tu_darmstadt.informatik.rbg.hatlak.iso9660.impl.CreateISO

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.