Package org.jnode.fs.hfsplus

Examples of org.jnode.fs.hfsplus.SuperBlock


    }

    public Extent(HfsPlusFileSystem fs) throws IOException {
        log.debug("Load B-Tree extent overflow file.");
        this.fs = fs;
        SuperBlock sb = fs.getVolumeHeader();
        extentFile = sb.getExtentsFile();

        if (!extentFile.getExtent(0).isEmpty()) {
            buffer = ByteBuffer.allocate(NodeDescriptor.BT_NODE_DESCRIPTOR_LENGTH +
                BTHeaderRecord.BT_HEADER_RECORD_LENGTH);
            extentFile.read(fs, 0, buffer);
View Full Code Here


     * @throws IOException
     */
    public Catalog(final HfsPlusFileSystem fs) throws IOException {
        log.info("Load B-Tree catalog file.");
        this.fs = fs;
        SuperBlock sb = fs.getVolumeHeader();
        catalogFile = sb.getCatalogFile();

        if (!catalogFile.getExtent(0).isEmpty()) {
            buffer = ByteBuffer.allocate(NodeDescriptor.BT_NODE_DESCRIPTOR_LENGTH +
                BTHeaderRecord.BT_HEADER_RECORD_LENGTH);
            catalogFile.read(fs, 0, buffer);
View Full Code Here

     * Save catalog file to disk.
     *
     * @throws IOException
     */
    public void update() throws IOException {
        SuperBlock vh = fs.getVolumeHeader();
        long offset = vh.getCatalogFile().getExtent(0).getStartOffset(vh.getBlockSize());
        fs.getApi().write(offset, this.getBytes());
    }
View Full Code Here

TOP

Related Classes of org.jnode.fs.hfsplus.SuperBlock

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.