Package org.jnode.apps.vmware.disk.extent

Examples of org.jnode.apps.vmware.disk.extent.Extent


*
*/
final class SimpleDescriptorRW extends DescriptorRW {
    @Override
    public Extent createMainExtent(Descriptor desc, ExtentDeclaration extentDecl) {
        return new Extent(desc, extentDecl);
    }
View Full Code Here


                    mainExtentDecl = extentDecl;
                } else {
                    FileDescriptor fileDescriptor =
                            IOUtils.readFileDescriptor(extentDecl.getExtentFile());

                    Extent extent = createExtent(fileDescriptor, extentDecl);
                    extents.add(extent);
                }
            }

            Descriptor desc = new Descriptor(file, header, extents, diskDatabase);

            Extent mainExtent = createMainExtent(desc, mainExtentDecl);
            extents.add(0, mainExtent);

            return desc;
        } finally {
            if (br != null) {
View Full Code Here

                    ")");
        }
    }

    protected ExtentIO getExtentIO(long sector, boolean mode) throws IOException {
        Extent extent = getExtent(sector, mode);
        return getExtentIO(extent);
    }
View Full Code Here

    protected ExtentIO createExtentIO(RandomAccessFile raf, Extent extent) {
        return new ExtentIO(raf, extent);
    }

    protected Extent getExtent(long sector, boolean mode) throws IOException {
        Extent handler = null;
        for (Extent extent : descriptor.getExtents()) {
            // LOG.debug(extent.getFileName()+":
            // SizeInSectors="+extent.getSizeInSectors());

            if (sector < extent.getSizeInSectors()) {
View Full Code Here

TOP

Related Classes of org.jnode.apps.vmware.disk.extent.Extent

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.