fsdirectory.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 55 行
JAVA
55 行
/*
* $Id: FSDirectory.java,v 1.1 2003/11/25 11:50:43 epr Exp $
*/
package org.jnode.fs;
import java.io.IOException;
import java.util.Iterator;
/**
* @author epr
*/
public interface FSDirectory extends FSObject {
/**
* Gets an iterator used to iterate over all the entries of this
* directory.
* All elements returned by the iterator must be instanceof FSEntry.
*/
public Iterator/*<FSEntry>*/ iterator()
throws IOException;
/**
* Gets the entry with the given name.
* @param name
* @throws IOException
*/
public FSEntry getEntry(String name)
throws IOException;
/**
* Add a new file with a given name to this directory.
* @param name
* @throws IOException
*/
public FSEntry addFile(String name)
throws IOException;
/**
* Add a new (sub-)directory with a given name to this directory.
* @param name
* @throws IOException
*/
public FSEntry addDirectory(String name)
throws IOException;
/**
* Remove the entry with the given name from this directory.
* @param name
* @throws IOException
*/
public void remove(String name)
throws IOException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?