|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sca4j.host.contribution.DefaultContributionSource
public class DefaultContributionSource
A contribution artifact that is on a filesystem
| Constructor Summary | |
|---|---|
DefaultContributionSource(java.net.URL location,
long timestamp,
java.lang.String type)
Initialises the contribution source state. |
|
| Method Summary | |
|---|---|
java.net.URL |
getLocation()
If the source is local, returns the source URL |
java.io.InputStream |
getSource()
Returns a input stream for the source. |
long |
getTimestamp()
Returns the source timestamp. |
java.lang.String |
getType()
Returns the type of the contribution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultContributionSource(java.net.URL location,
long timestamp,
java.lang.String type)
location - The location of the contribution.timestamp - Contribution timestamp.type - Contribution type.| Method Detail |
|---|
public java.io.InputStream getSource()
throws java.io.IOException
getSource in interface ContributionSourcejava.io.IOException - If a stream cannot be open.ContributionSource.getSource()public java.net.URL getLocation()
getLocation in interface ContributionSourceContributionSource.getLocation()public long getTimestamp()
getTimestamp in interface ContributionSourceContributionSource.getTimestamp()public java.lang.String getType()
getType in interface ContributionSourceContributionSource.getType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||