public abstract class NutResource extends Object implements Comparable<NutResource>
构造器和说明 |
---|
NutResource() |
限定符和类型 | 方法和说明 |
---|---|
int |
compareTo(NutResource o) |
boolean |
equals(Object obj) |
abstract InputStream |
getInputStream()
使用完毕后,务必关闭
|
String |
getName() |
int |
getPriority() |
Reader |
getReader()
使用完毕后,务必关闭
|
String |
getSource() |
int |
hashCode() |
NutResource |
setName(String name) |
NutResource |
setPriority(int priority) |
void |
setSource(String source) |
String |
toString() |
protected String name
protected String source
protected int priority
public abstract InputStream getInputStream() throws IOException
IOException
public String getName()
public Reader getReader() throws IOException
IOException
public NutResource setName(String name)
public void setSource(String source)
public String getSource()
public int compareTo(NutResource o)
compareTo
在接口中 Comparable<NutResource>
public int getPriority()
public NutResource setPriority(int priority)
Copyright © 2017. All rights reserved.