public Ext2DirectoryRecord(byte[] data, int offset) { iNodeNr = (int) Ext2Utils.get32(data, offset); recLen = Ext2Utils.get16(data, offset + 4); nameLen = Ext2Utils.get8(data, offset + 6); type = Ext2Utils.get8(data, offset + 7);  name = new StringBuffer(); if (iNodeNr != 0) {  for (int i = 0; i < nameLen; i++) name.append((char) Ext2Utils.get8(data, offset + 8 + i)); log.debug("Ext2DirectoryRecord(): iNode=" + iNodeNr + ", name=" + name); }
public Ext2DirectoryRecord(byte[] data, int offset, int fileOffset) { this.data = data; this.offset = offset; this.fileOffset = fileOffset;
	public Ext2DirectoryRecord(byte[] data, int offset) {		iNodeNr = (int) Ext2Utils.get32(data, offset);		recLen = Ext2Utils.get16(data, offset + 4);		nameLen = Ext2Utils.get8(data, offset + 6);		type = Ext2Utils.get8(data, offset + 7);		name = new StringBuffer();		if (iNodeNr != 0) {			//XXX character conversion			for (int i = 0; i < nameLen; i++)				name.append((char) Ext2Utils.get8(data, offset + 8 + i));			log.debug("Ext2DirectoryRecord(): iNode=" + iNodeNr + ", name=" + name);		}	}