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

Examples of com.github.stephenc.javaisotools.sabre.impl.DWordDataReference


                      String imageIdentifier, String applicationIdentifier, byte[] applicationIdentifierSuffix)
            throws HandlerException {
        myStreamHandler.data(new WordDataReference(selfBlock));                                // element location
        myStreamHandler.data(new WordDataReference(
                volumeDescriptorSequenceNumber));        // volume descriptor sequence number
        myStreamHandler.data(new DWordDataReference(recordingTimeMillis));                    // recording time
        myStreamHandler.data(new ByteArrayDataReference(imageIdentifier.getBytes()));        // image identifier
        myStreamHandler.data(new ByteArrayDataReference(applicationIdentifier.getBytes()));    // application identifier
        myStreamHandler
                .data(new ByteArrayDataReference(applicationIdentifierSuffix));        // application identifier suffix
    }
View Full Code Here


    public void doLVID(long selfBlock, long recordingTimeMillis, long numberOfFiles, long numberOfDirectories,
                       String applicationIdentifier, byte[] applicationIdentifierSuffix, long[] sizeTable,
                       long[] freespaceTable, long nextUniqueId)
            throws HandlerException {
        myStreamHandler.data(new WordDataReference(selfBlock));                                    // element location
        myStreamHandler.data(new DWordDataReference(recordingTimeMillis));                        // recording time
        myStreamHandler.data(new WordDataReference(numberOfFiles));                                // number of files
        myStreamHandler
                .data(new WordDataReference(numberOfDirectories));                        // number of directories
        myStreamHandler
                .data(new ByteArrayDataReference(applicationIdentifier.getBytes()));        // application identifier
View Full Code Here

    public void doFSD(long selfBlock, long recordingTimeMillis, long rootDirectoryLocation,
                      int partitionToStoreMetadataOn, String imageIdentifier)
            throws HandlerException {
        myStreamHandler.data(new WordDataReference(selfBlock));                            // element location
        myStreamHandler.data(new DWordDataReference(recordingTimeMillis));                // recording time
        myStreamHandler.data(new WordDataReference(rootDirectoryLocation));                // root directory block
        myStreamHandler.data(new WordDataReference(
                partitionToStoreMetadataOn));        // the number of the partition to store the metadata on
        myStreamHandler.data(new ByteArrayDataReference(imageIdentifier.getBytes()));    // image identifier
    }
View Full Code Here

                    childFileType = 0;
                } else if (childUDFImageBuilderFiles[i].getFileType() == UDFImageBuilderFile.FileType.Directory) {
                    childFileType = 1;
                }

                myStreamHandler.data(new DWordDataReference(
                        childFileUniqueId));                                            // child file unique id
                myStreamHandler.data(new WordDataReference(
                        childFileLocation));                                            // child fileentry location
                myStreamHandler.data(new ByteArrayDataReference(
                        childUDFImageBuilderFiles[i].getIdentifier().getBytes()));    // child file identifier
                myStreamHandler.data(new WordDataReference(
                        childFileType));                                                        // child file type
            }

            myStreamHandler
                    .data(new WordDataReference(childUDFImageBuilderFiles.length));        // number of child files

            // get and pass parent directory information
            long parentDirectoryUniqueId = 0;
            long parentDirectoryLocation =
                    myUDFLayoutInformation.fileEntryPositions.get(myUDFImageBuilderFile).entryLocation;

            if (myUDFImageBuilderFile.getParent() != null) {
                parentDirectoryUniqueId = myUDFLayoutInformation.uniqueIds.get(myUDFImageBuilderFile.getParent());
                parentDirectoryLocation =
                        myUDFLayoutInformation.fileEntryPositions.get(myUDFImageBuilderFile.getParent()).entryLocation;
            }

            myStreamHandler.data(new DWordDataReference(parentDirectoryUniqueId));
            myStreamHandler.data(new WordDataReference(parentDirectoryLocation));

            myStreamHandler.data(new WordDataReference(
                    myUDFLayoutInformation.partitionToStoreMetadataOn));    // partition to store metadata on
            myStreamHandler
                    .data(new WordDataReference(dataLocation));                                        // data location
        }

        myStreamHandler.data(new WordDataReference(selfBlock));                                    // element location
        myStreamHandler.data(new WordDataReference(fileLinkCount));                                // file link count
        myStreamHandler.data(new DWordDataReference(accessTimeMillis));                            // access time
        myStreamHandler.data(new DWordDataReference(modificationTimeMillis));                    // modification time
        myStreamHandler.data(new DWordDataReference(attributeTimeMillis));                        // attribute time
        myStreamHandler.data(new DWordDataReference(creationTimeMillis));                        // creation time
        myStreamHandler.data(new DWordDataReference(uniqueId));                                    // unique id
        myStreamHandler
                .data(new ByteArrayDataReference(applicationIdentifier.getBytes()));        // application identifier
        myStreamHandler.data(new ByteArrayDataReference(
                applicationIdentifierSuffix));            // application identifier suffix
        myStreamHandler.data(new WordDataReference(fileType));                                    // file type
View Full Code Here

    public void doMetadataFile(long recordingTimeMillis, String applicationIdentifier,
                               byte[] applicationIdentifierSuffix, UDFLayoutInformation myUDFLayoutInformation,
                               long metadataFileLocation, byte fileType)
            throws HandlerException {
        myStreamHandler.data(new DWordDataReference(recordingTimeMillis));
        myStreamHandler.data(new ByteArrayDataReference(applicationIdentifier.getBytes()));
        myStreamHandler.data(new ByteArrayDataReference(applicationIdentifierSuffix));
        myStreamHandler.data(new WordDataReference(myUDFLayoutInformation.metadataPartitionStartingBlock));
        myStreamHandler.data(new WordDataReference(myUDFLayoutInformation.metadataPartitionEndingBlock));
        myStreamHandler.data(new WordDataReference(myUDFLayoutInformation.physicalPartitionStartingBlock));
View Full Code Here

TOP

Related Classes of com.github.stephenc.javaisotools.sabre.impl.DWordDataReference

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.