public abstract class NutResource extends Object implements Comparable<NutResource>
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected int |
priority |
protected String |
source
这个对象的来源
|
Constructor and Description |
---|
NutResource() |
Modifier and Type | Method and Description |
---|---|
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
in interface Comparable<NutResource>
public int getPriority()
public NutResource setPriority(int priority)
Copyright © 2017. All rights reserved.