|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.Source
public abstract class Source
Abstract class for representing sources of information. Using instances of this instead of using the relevant Java classes aids debugging, as it contains a method to obtain the origin of this source.
| Constructor Summary | |
|---|---|
Source()
|
|
| Method Summary | |
|---|---|
abstract java.io.InputStream |
getInputStream()
Returns an InputStream to read bytes from this source. |
abstract java.lang.String |
getOrigin()
Returns this sources origin. |
abstract java.net.URL |
getOriginURL()
Returns a URL for the sources origin. |
java.io.Reader |
getReader()
Returns a Reader to read characters from this source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Source()
| Method Detail |
|---|
public abstract java.io.InputStream getInputStream()
public abstract java.lang.String getOrigin()
public abstract java.net.URL getOriginURL()
public java.io.Reader getReader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||