|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISource
Generic representation of binary or text source. This for example could be java source code or the bytes of a jar file.
Method Summary | |
---|---|
java.lang.String |
getDescription()
Return the description of this source. |
java.io.InputStream |
getInputStream()
Get an input stream for this source. |
java.lang.String |
getName()
Return the name of this source. |
java.io.Reader |
getReader()
Get a reader for the contents of this source. |
java.io.Reader |
getReader(java.lang.String encoding)
Get a reader for the contents of this source. |
java.lang.String |
getString()
Get a string from the contents of this source. |
java.lang.String |
getString(java.lang.String encoding)
Get a string from the contents of this source. |
SourceType |
getType()
Return the type of this source. |
boolean |
isText()
Return true if the type of this source is text . |
boolean |
isValid()
Return true iff any of the getInputStream() ,
getString() , getReader() methods will return
a non-null object. |
Method Detail |
---|
java.lang.String getName()
SourceType getType()
type
of this source.
java.lang.String getDescription()
boolean isValid()
true
iff any of the getInputStream()
,
getString()
, getReader()
methods will return
a non-null
object.
boolean isText()
true
if the type of this source is text
.
true
iff getType().isText()
returns true
.java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
java.lang.String getString(java.lang.String encoding) throws java.io.IOException
encoding
.
encoding
-
java.io.IOException
java.lang.String getString() throws java.io.IOException
StringUtil.UTF8
encoding.
java.io.IOException
java.io.Reader getReader(java.lang.String encoding) throws java.io.IOException
encoding
.
encoding
-
java.io.IOException
java.io.Reader getReader() throws java.io.IOException
StringUtil.UTF8
encoding.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |