fsentry.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 82 行
JAVA
82 行
/*
* $Id: FSEntry.java,v 1.1 2003/11/25 11:50:43 epr Exp $
*/
package org.jnode.fs;
import java.io.IOException;
/**
* @author epr
*/
/**
* Entry of an FSDirectory.
* @author epr
*/
public interface FSEntry extends FSObject {
/**
* Gets the name of this entry.
*/
public String getName();
/**
* Gets the directory this entry is a part of.
*/
public FSDirectory getParent();
/**
* Gets the last modification time of this entry.
* @throws IOException
*/
public long getLastModified()
throws IOException;
/**
* Is this entry refering to a file?
*/
public boolean isFile();
/**
* Is this entry refering to a (sub-)directory?
*/
public boolean isDirectory();
/**
* Sets the name of this entry.
*/
public void setName(String newName)
throws IOException;
/**
* Gets the last modification time of this entry.
* @throws IOException
*/
public void setLastModified(long lastModified)
throws IOException;
/**
* Gets the file this entry refers to. This method can only be called
* if <code>isFile</code> returns true.
*
* @return The file described by this entry
*/
public FSFile getFile()
throws IOException;
/**
* Gets the directory this entry refers to. This method can only be called
* if <code>isDirectory</code> returns true.
*
* @return The directory described by this entry
*/
public FSDirectory getDirectory()
throws IOException;
/**
* Gets the accessrights for this entry.
* @throws IOException
*/
public FSAccessRights getAccessRights()
throws IOException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?