ntfsfilesystemtype.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 51 行
JAVA
51 行
/*
* $Id: NTFSFileSystemType.java,v 1.3 2004/02/02 00:57:21 gbin Exp $
*/
package org.jnode.fs.ntfs;
import org.jnode.driver.*;
import org.jnode.fs.*;
import org.jnode.fs.partitions.*;
/**
* @author Chira
*
* To change the template for this generated type comment go to Window -
* Preferences - Java - Code Generation - Code and Comments
*/
public class NTFSFileSystemType implements FileSystemType {
public static final String NAME = "NTFS";
public static final String TAG = "NTFS";
public String getName() {
return NAME;
}
/*
* (non-Javadoc)
*
* @see org.jnode.fs.FileSystemType#supports(org.jnode.fs.partitions.PartitionTableEntry,
* byte[])
*/
public boolean supports(PartitionTableEntry pte, byte[] firstSector) {
return new String(firstSector, 0x03, 8).startsWith(TAG);
}
/*
* (non-Javadoc)
*
* @see org.jnode.fs.FileSystemType#create(org.jnode.driver.Device)
*/
public FileSystem create(Device device) throws FileSystemException {
return new NTFSFileSystem(device);
}
/**
* @see org.jnode.fs.FileSystemType#format(org.jnode.driver.Device,
* java.lang.Object)
*/
public FileSystem format(Device device, Object specificOptions) throws FileSystemException {
throw new FileSystemException("Not yet implemented");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?