ntfsresidentattribute.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 52 行
JAVA
52 行
/*
* $Id: NTFSResidentAttribute.java,v 1.3 2004/01/25 00:28:43 gbin Exp $
*/
package org.jnode.fs.ntfs.attributes;
import org.jnode.fs.ntfs.*;
/**
* @author Chira
*
* To change the template for this generated type comment go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
public class NTFSResidentAttribute extends NTFSAttribute
{
/**
* @param fileRecord
* @param buffer
*/
public NTFSResidentAttribute(NTFSFileRecord fileRecord, byte[] buffer)
{
super(fileRecord, buffer);
processAttributeData(buffer);
}
/**
* @return Returns the attributeOffset.
*/
public int getAttributeOffset() {
return NTFSUTIL.LE_READ_U16_INT(buffer[0x14],buffer[0x15]);
}
/**
* @return Returns the indexedFlag.
*/
public byte getIndexedFlag()
{
return buffer[0x16];
}
public int getAttributeLength()
{
return NTFSUTIL.LE_READ_U32_INT( buffer, 0x10);
}
// overwrite for different functionality
public void processAttributeData(byte[] buffer)
{
// TODO: implement
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?