| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecteu.planets_project.services.datatypes.Content
public final class Content
Static factory methods for content creation.
| Method Summary | |
|---|---|
static DigitalObjectContent | 
byReference(java.io.File reference)
Create (streamed) content by reference, from a file.  | 
static DigitalObjectContent | 
byReference(java.io.InputStream inputStream)
Create (streamed) content by reference, from an input stream.  | 
static DigitalObjectContent | 
byReference(java.net.URI reference)
Create content by reference.  | 
static DigitalObjectContent | 
byReference(java.net.URL reference)
Create content by reference.  | 
static DigitalObjectContent | 
byValue(byte[] value)
Create content by value (actually embedded in the request).  | 
static DigitalObjectContent | 
byValue(java.io.File value)
Create content by value (actually embedded in the request).  | 
static DigitalObjectContent | 
byValue(java.io.InputStream inputStream)
Create content by value (actually embedded in the request).  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static DigitalObjectContent byReference(java.net.URL reference)
reference - The URL reference to the actual content
public static DigitalObjectContent byReference(java.net.URI reference)
reference - The URI reference to the content
public static DigitalObjectContent byReference(java.io.File reference)
reference - The reference to the actual content value, using a File
        whose content will be streamed over the connection.
public static DigitalObjectContent byReference(java.io.InputStream inputStream)
inputStream - The InputStream containing the value for the content.
public static DigitalObjectContent byValue(byte[] value)
value - The value bytes for the content
public static DigitalObjectContent byValue(java.io.File value)
value - The value file for the content.
public static DigitalObjectContent byValue(java.io.InputStream inputStream)
inputStream - The InputStream containing the value for the content.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||