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

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


          Iso9660ArchiverException.Type.DestinationReadOnly, dest
              + " is read-only.");
    }

    ISO9660RootDirectory.MOVED_DIRECTORIES_STORE_NAME = "rr_moved";
    ISO9660RootDirectory root = new ISO9660RootDirectory();

    try {
      Map<String, ISO9660Directory> directories = new TreeMap<String, ISO9660Directory>();
      Map<String, ISO9660File> files = new TreeMap<String, ISO9660File>();
View Full Code Here


            throw new MojoExecutionException("Could not create output directory: " + outputDirectory);
        }
       
        // Directory hierarchy, starting from the root
        ISO9660RootDirectory.MOVED_DIRECTORIES_STORE_NAME = movedDirectoriesStoreName;
        ISO9660RootDirectory root = new ISO9660RootDirectory();

        File isoFile = new File(outputDirectory, finalName);
       
        try {
            if (inputDirectory.isDirectory()) {
                root.addContentsRecursively(inputDirectory);
            }

            StreamHandler streamHandler = new ISOImageFileHandler(isoFile);
            CreateISO iso = new CreateISO(streamHandler, root);
            ISO9660Config iso9660Config = new ISO9660Config();
View Full Code Here

        this.volumeFixups = new HashMap();

        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

            // Verbosity
            NamingConventions.VERBOSE = verbose;

            // Build directory hierarchy
            ISO9660RootDirectory.MOVED_DIRECTORIES_STORE_NAME = movedDirectoriesStoreName;
            ISO9660RootDirectory root = new ISO9660RootDirectory();
            createHierarchy(root);

            File copyrightFileObj = null;
            if (copyrightFile != null) {
                copyrightFileObj = new File(copyrightFile);
View Full Code Here

        // Output file
        File outfile = new File(workDir, "empty.iso");

        // Directory hierarchy, starting from the root
        ISO9660RootDirectory.MOVED_DIRECTORIES_STORE_NAME = "rr_moved";
        ISO9660RootDirectory root = new ISO9660RootDirectory();
        StreamHandler streamHandler = new ISOImageFileHandler(outfile);
        CreateISO iso = new CreateISO(streamHandler, root);
        iso.process(new ISO9660Config(), null, null, null);

        assertThat(outfile.isFile(), is(true));
View Full Code Here

        IOUtil.copy(contentString, os);
        IOUtil.close(os);

        // Directory hierarchy, starting from the root
        ISO9660RootDirectory.MOVED_DIRECTORIES_STORE_NAME = "rr_moved";
        ISO9660RootDirectory root = new ISO9660RootDirectory();

        root.addFile(contents);

        StreamHandler streamHandler = new ISOImageFileHandler(outfile);
        CreateISO iso = new CreateISO(streamHandler, root);
        ISO9660Config iso9660Config = new ISO9660Config();
        iso9660Config.allowASCII(false);
View Full Code Here

        IOUtil.copy("Goodbye", os);
        IOUtil.close(os);

        // Directory hierarchy, starting from the root
        ISO9660RootDirectory.MOVED_DIRECTORIES_STORE_NAME = "rr_moved";
        ISO9660RootDirectory root = new ISO9660RootDirectory();

        ISO9660Directory dir = root.addDirectory("root");
        dir.addFile(contentsA);
        dir.addFile(contentsB);

        StreamHandler streamHandler = new ISOImageFileHandler(outfile);
        CreateISO iso = new CreateISO(streamHandler, root);
View Full Code Here

        File rootDir = new File(workDir, "big");
        assertThat(rootDir.isDirectory() || rootDir.mkdirs(), is(true));

        // Directory hierarchy, starting from the root
        ISO9660RootDirectory.MOVED_DIRECTORIES_STORE_NAME = "rr_moved";
        ISO9660RootDirectory root = new ISO9660RootDirectory();
        for (int i = 0; i < numFiles; i++) {
            File content = new File(rootDir, Integer.toString(i) + ".bin");
            int length = entropy.nextInt(1024 * 10 + 1);
            byte[] contents = new byte[length];
            entropy.nextBytes(contents);
            FileOutputStream fos = null;
            try {
                fos = new FileOutputStream(content);
                 fos.write(contents);
            } finally {
                IOUtil.close(fos);
            }
            root.addFile(content);
        }

        StreamHandler streamHandler = new ISOImageFileHandler(outfile);
        CreateISO iso = new CreateISO(streamHandler, root);
        ISO9660Config iso9660Config = new ISO9660Config();
View Full Code Here

        os = new FileOutputStream(contentsB);
        IOUtil.copy("Goodbye", os);
        IOUtil.close(os);

        // Top down
        ISO9660RootDirectory root = new ISO9660RootDirectory();
        ISO9660Directory n1 = root.addDirectory("D1");
        ISO9660Directory n2 = n1.addDirectory("D2");
        ISO9660Directory n3 = n2.addDirectory("D3");
        n3.addFile(contentsA);
        n3.addFile(contentsB);
View Full Code Here

        n3.addFile(contentsB);
        ISO9660Directory n2 = new ISO9660Directory("D2");
        n2.addDirectory(n3);
        ISO9660Directory n1 = new ISO9660Directory("D1");
        n1.addDirectory(n2);
        ISO9660RootDirectory root = new ISO9660RootDirectory();
        root.addDirectory(n1);

        StreamHandler streamHandler = new ISOImageFileHandler(outfile);
        CreateISO iso = new CreateISO(streamHandler, root);
        ISO9660Config iso9660Config = new ISO9660Config();
        iso9660Config.allowASCII(false);
View Full Code Here

TOP

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

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.