public class FileObjectImpl extends AbstractFileObject
Constructor and Description |
---|
FileObjectImpl(SchemaProvider schemaProvider,
File file) |
FileObjectImpl(SchemaProvider schemaProvider,
String resource) |
Modifier and Type | Method and Description |
---|---|
void |
clean()
对FileObject对象执行清理操作,清理完成后,可能会导致此对象不再可用
|
void |
delete()
删除目录或文件
|
String |
getAbsolutePath() |
FileObject |
getChild(String fileName) |
List<FileObject> |
getChildren() |
String |
getExtName() |
String |
getFileName() |
InputStream |
getInputStream() |
long |
getLastModifiedTime() |
OutputStream |
getOutputStream() |
String |
getPath() |
long |
getSize() |
URL |
getURL() |
boolean |
isExist() |
boolean |
isFolder() |
boolean |
isInPackage() |
boolean |
isModified() |
void |
resetModified()
重置为未修改状态
|
String |
toString() |
equals, foreach, foreach, getFileObject, getParent, getSchemaProvider, hashCode, setParent, substringAfter
public FileObjectImpl(SchemaProvider schemaProvider, String resource)
public FileObjectImpl(SchemaProvider schemaProvider, File file)
public boolean isModified()
isModified
in interface FileObject
isModified
in class AbstractFileObject
public void resetModified()
FileObject
resetModified
in interface FileObject
resetModified
in class AbstractFileObject
public String getFileName()
public String getPath()
public String getAbsolutePath()
public String getExtName()
public long getSize()
public InputStream getInputStream()
public boolean isFolder()
public List<FileObject> getChildren()
public long getLastModifiedTime()
public boolean isExist()
public boolean isInPackage()
public FileObject getChild(String fileName)
public URL getURL()
public OutputStream getOutputStream()
public void clean()
FileObject
clean
in interface FileObject
clean
in class AbstractFileObject
public void delete()
FileObject
delete
in interface FileObject
delete
in class AbstractFileObject
Copyright © 2006–2018 TinyGroup. All rights reserved.