|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NewEntry
Result of offering a new resource to a repository.
| Method Summary | |
|---|---|
boolean |
exists()
Does the resource already exist in the repository? |
ResourceEntry |
getExistingEntry()
existing entry details. |
java.lang.String |
getNewVersion()
Version assigned to the new resource. |
ResourceEntry |
submit(java.io.File content)
send the resource data. |
ResourceEntry |
submit(java.io.InputStream content,
long length)
send the resource data. |
| Method Detail |
|---|
boolean exists()
ResourceEntry getExistingEntry()
java.lang.String getNewVersion()
ResourceEntry submit(java.io.File content)
throws java.io.IOException
submit(new FileInputStream(content), content.length())
content - file to send.
java.io.IOException
ResourceEntry submit(java.io.InputStream content,
long length)
throws java.io.IOException
content - stream containing resource contentlength - length of the stream in bytes
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||