public interface FileObject extends Serializable
文件路径必须是Linux规范
Modifier and Type | Method and Description |
---|---|
void |
clean()
对FileObject对象执行清理操作,清理完成后,可能会导致此对象不再可用
|
void |
delete()
删除目录或文件
|
void |
foreach(FileObjectFilter fileObjectFilter,
FileObjectProcessor fileObjectProcessor) |
void |
foreach(FileObjectFilter fileObjectFilter,
FileObjectProcessor fileObjectProcessor,
boolean parentFirst) |
String |
getAbsolutePath() |
FileObject |
getChild(String fileName) |
List<FileObject> |
getChildren() |
String |
getExtName() |
String |
getFileName() |
FileObject |
getFileObject(String path)
根据路径查找子对象
|
InputStream |
getInputStream() |
long |
getLastModifiedTime() |
OutputStream |
getOutputStream() |
FileObject |
getParent() |
String |
getPath() |
SchemaProvider |
getSchemaProvider() |
long |
getSize() |
URL |
getURL() |
boolean |
isExist() |
boolean |
isFolder() |
boolean |
isInPackage() |
boolean |
isModified() |
void |
resetModified()
重置为未修改状态
|
void |
setParent(FileObject fileObject) |
SchemaProvider getSchemaProvider()
boolean isModified()
void resetModified()
URL getURL()
String getAbsolutePath()
String getPath()
String getFileName()
String getExtName()
boolean isFolder()
boolean isInPackage()
boolean isExist()
long getLastModifiedTime()
long getSize()
InputStream getInputStream()
OutputStream getOutputStream()
FileObject getParent()
void setParent(FileObject fileObject)
List<FileObject> getChildren()
FileObject getChild(String fileName)
void foreach(FileObjectFilter fileObjectFilter, FileObjectProcessor fileObjectProcessor, boolean parentFirst)
void foreach(FileObjectFilter fileObjectFilter, FileObjectProcessor fileObjectProcessor)
void clean()
void delete()
FileObject getFileObject(String path)
path
- Copyright © 2006–2018 TinyGroup. All rights reserved.