filesystemservice.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 71 行
JAVA
71 行
/*
* $Id: FileSystemService.java,v 1.4 2004/02/02 00:57:22 gbin Exp $
*/
package org.jnode.fs.service;
import java.io.*;
import java.util.Collection;
import org.jnode.driver.Device;
import org.jnode.fs.FileSystem;
import org.jnode.fs.FileSystemException;
import org.jnode.fs.FileSystemType;
/**
* @author epr
*/
public interface FileSystemService {
/**
* Name used to lookup a FileSystemTypeManager in the initial namespace.
*/
public static final Class NAME = FileSystemService.class; //"system/FileSystemService";
/**
* Gets all registered file system types. All instances of the returned
* collection are instanceof FileSystemType.
*/
public Collection fileSystemTypes();
/**
* Gets registered file system types with the gicen name.
*
* @param name the name of the FSType you want
* @return the fileSystemType
*/
public FileSystemType getFileSystemTypeForNameSystemTypes(String name) throws FileSystemException;
/**
* Register a mounted filesystem
*
* @param fs
*/
public void registerFileSystem(FileSystem fs) throws FileSystemException;
/**
* Unregister a mounted filesystem
*
* @param fs
*/
public void unregisterFileSystem(FileSystem fs);
/**
* Gets the filesystem registered on the given device.
*
* @param device
* @return null if no filesystem was found.
*/
public FileSystem getFileSystem(Device device);
/**
* Gets all registered filesystems. All instances of the returned collection
* are instanceof FileSystem.
*/
public Collection fileSystems();
/**
* Gets the filesystem API.
*/
public VMFileSystemAPI getApi();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?