|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sca4j.host.contribution.FileContributionSource
public class FileContributionSource
A contribution artifact that is on a filesystem
| Constructor Summary | |
|---|---|
FileContributionSource(java.net.URI uri,
java.net.URL location,
long timestamp,
byte[] checksum)
|
|
FileContributionSource(java.net.URI uri,
java.net.URL location,
long timestamp,
byte[] checksum,
java.lang.String contentType)
|
|
FileContributionSource(java.net.URL location,
long timestamp,
byte[] checksum)
|
|
| Method Summary | |
|---|---|
byte[] |
getChecksum()
Returns the source checksum. |
java.lang.String |
getContentType()
Returns the content type of the source |
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.net.URI |
getUri()
Returns the identifier for this contribution or null if one has not been assigned (i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileContributionSource(java.net.URL location,
long timestamp,
byte[] checksum)
public FileContributionSource(java.net.URI uri,
java.net.URL location,
long timestamp,
byte[] checksum)
public FileContributionSource(java.net.URI uri,
java.net.URL location,
long timestamp,
byte[] checksum,
java.lang.String contentType)
| Method Detail |
|---|
public java.net.URI getUri()
ContributionSource
getUri in interface ContributionSource
public java.io.InputStream getSource()
throws java.io.IOException
ContributionSource
getSource in interface ContributionSourcejava.io.IOException - if an error occurs returning the streampublic java.net.URL getLocation()
ContributionSource
getLocation in interface ContributionSourcepublic long getTimestamp()
ContributionSource
getTimestamp in interface ContributionSourcepublic byte[] getChecksum()
ContributionSource
getChecksum in interface ContributionSourcepublic java.lang.String getContentType()
ContributionSource
getContentType in interface ContributionSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||