Examples of CatalogNodeId


Examples of org.jnode.fs.hfsplus.catalog.CatalogNodeId

        assertEquals(7, key.getParentId().getId());
    }

    @Test
    public void testConstructFromCNIDAndString() {
        CatalogNodeId id = CatalogNodeId.HFSPLUS_START_CNID;
        HfsUnicodeString string = new HfsUnicodeString(NODE_NAME_AS_STRING);
        CatalogKey key = new CatalogKey(id, string);
        assertEquals(NODE_NAME_AS_STRING, key.getNodeName().getUnicodeString());
        assertEquals(24, key.getKeyLength());
        assertEquals(7, key.getParentId().getId());
View Full Code Here

Examples of org.jnode.fs.hfsplus.catalog.CatalogNodeId

    }

    @Test
    public void testConstructFromCNIDAndEmptyString() {
        CatalogNodeId id = CatalogNodeId.HFSPLUS_START_CNID;
        HfsUnicodeString string = new HfsUnicodeString("");
        CatalogKey key = new CatalogKey(id, string);
        assertEquals("", key.getNodeName().getUnicodeString());
        assertEquals(8, key.getKeyLength());
        assertEquals(7, key.getParentId().getId());
View Full Code Here

Examples of org.jnode.fs.hfsplus.catalog.CatalogNodeId

        System.arraycopy(src, offset, ek, 0, KEY_LENGTH);
        //TODO Understand why the +2 is necessary
        keyLength = BigEndian.getUInt16(ek, 0) + 2;
        forkType = BigEndian.getUInt8(ek, 2);
        pad = BigEndian.getUInt8(ek, 3);
        fileId = new CatalogNodeId(ek, 4);
        startBlock = BigEndian.getUInt32(ek, 8);
    }
View Full Code Here

Examples of org.jnode.fs.hfsplus.catalog.CatalogNodeId

        }
        Catalog catalog = ((HfsPlusFileSystem) getFileSystem()).getCatalog();
        SuperBlock volumeHeader = ((HfsPlusFileSystem) getFileSystem()).getVolumeHeader();
        CatalogLeafNode node =
            catalog.createNode(name, this.folder.getFolderId(),
                new CatalogNodeId(volumeHeader.getNextCatalogId()),
                CatalogFolder.RECORD_TYPE_FOLDER_THREAD);
        folder.incrementValence();

        HfsPlusEntry newEntry =
            new HfsPlusEntry((HfsPlusFileSystem) getFileSystem(), this, name, node.getNodeRecord(0));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.