public class FileResource extends NutResource
name, priority, source
Constructor and Description |
---|
FileResource(File f) |
FileResource(String base,
File file) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
File |
getFile() |
InputStream |
getInputStream()
使用完毕后,务必关闭
|
int |
hashCode() |
FileResource |
setFile(File file) |
String |
toString() |
compareTo, getName, getPriority, getReader, getSource, setName, setPriority, setSource
public FileResource(File f)
public File getFile()
public FileResource setFile(File file)
public InputStream getInputStream() throws IOException
NutResource
getInputStream
in class NutResource
IOException
public boolean equals(Object obj)
equals
in class NutResource
public int hashCode()
hashCode
in class NutResource
public String toString()
toString
in class NutResource
Copyright © 2017. All rights reserved.