|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.optrak.tools.repository.server.NewResource
public class NewResource
NewEntry implementation for new resources.
| Constructor Summary | |
|---|---|
NewResource(SubmitStream out,
java.lang.String version)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NewResource(SubmitStream out,
java.lang.String version)
| Method Detail |
|---|
public ResourceEntry getExistingEntry()
NewEntry
public java.lang.String getNewVersion()
NewEntry
public boolean exists()
NewEntry
public ResourceEntry submit(java.io.File content)
throws java.io.IOException
NewEntrysubmit(new FileInputStream(content), content.length())
content - file to send.
java.io.IOException
public ResourceEntry submit(java.io.InputStream content,
long length)
throws java.io.IOException
NewEntry
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 | ||||||||