Package com.github.stephenc.javaisotools.iso9660.sabre.impl

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


    }

    public void applyNamingConventions() throws HandlerException {
        super.applyNamingConventions();

        NamingConventions namingConventions = helper.getNamingConventions();
        namingConventions.processDirectory(rripRoot);

        Iterator sit = rripRoot.unsortedIterator();
        while (sit.hasNext()) {
            ISO9660Directory dir = (ISO9660Directory) sit.next();
            namingConventions.processDirectory(dir);
        }
    }
View Full Code Here


        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

    public void startElement(Element element) throws HandlerException {
        if (element instanceof ISO9660Element) {
            String id = (String) element.getId();
            process(id);
        } else if (element instanceof FileElement) {
            FileElement fileElement = (FileElement) element;
            factory.doFileFixup(fileElement.getFile());
        }
        super.startElement(element);
    }
View Full Code Here

      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

TOP

Related Classes of com.github.stephenc.javaisotools.iso9660.sabre.impl.EmptyByteArrayDataReference

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.