Package org.jnode.fs.hfsplus.tree

Examples of org.jnode.fs.hfsplus.tree.BTHeaderRecord


            byte[] data = ByteBufferUtils.toArray(buffer);
            log.info("Load catalog node descriptor.");
            btnd = new NodeDescriptor(data, 0);
            log.debug(btnd.toString());
            log.info("Load catalog header record.");
            bthr = new BTHeaderRecord(data, NodeDescriptor.BT_NODE_DESCRIPTOR_LENGTH);
            log.debug(bthr.toString());

        }
    }
View Full Code Here


        //
        int totalNodes = params.getCatalogClumpSize() / params.getCatalogNodeSize();
        int freeNodes = totalNodes - 2;
        log.info("Create catalog header record.");
        bthr =
            new BTHeaderRecord(1, 1, params.getInitializeNumRecords(), 1, 1, nodeSize,
                CatalogKey.MAXIMUM_KEY_LENGTH, totalNodes, freeNodes,
                params.getCatalogClumpSize(), BTHeaderRecord.BT_TYPE_HFS,
                BTHeaderRecord.KEY_COMPARE_TYPE_CASE_FOLDING,
                BTHeaderRecord.BT_VARIABLE_INDEX_KEYS_MASK +
                    BTHeaderRecord.BT_BIG_KEYS_MASK);
View Full Code Here

        log.info("Create B-Tree extent file.");
        btnd = new NodeDescriptor(0, 0, NodeDescriptor.BT_HEADER_NODE, 0, 3);
        //
        int totalNodes = params.getExtentClumpSize() / params.getExtentNodeSize();
        int freeNodes = totalNodes - 1;
        bthr = new BTHeaderRecord(0, 0, 0, 0, 0, params.getExtentNodeSize(),
            ExtentKey.MAXIMUM_KEY_LENGTH, totalNodes, freeNodes,
            params.getExtentClumpSize(), BTHeaderRecord.BT_TYPE_HFS,
            BTHeaderRecord.KEY_COMPARE_TYPE_CASE_FOLDING,
            BTHeaderRecord.BT_BIG_KEYS_MASK);
    }
View Full Code Here

            byte[] data = ByteBufferUtils.toArray(buffer);
            log.debug("Load extent node descriptor.");
            btnd = new NodeDescriptor(data, 0);
            log.debug(btnd.toString());
            log.debug("Load extent header record.");
            bthr = new BTHeaderRecord(data, NodeDescriptor.BT_NODE_DESCRIPTOR_LENGTH);
            log.debug(bthr.toString());
        }
    }
View Full Code Here

TOP

Related Classes of org.jnode.fs.hfsplus.tree.BTHeaderRecord

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.