|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.rf.common.content.Content
Access to the content data of a resource.
| Field Summary | |
protected IContentMetadata |
contentMetadata
|
| Constructor Summary | |
Content(InputStream inputStream,
IContentMetadata contentMetadata)
Constructs Content object, for use when media subtype and encoding are available as individual values. |
|
Content(InputStream inputStream,
String mediaType,
long contentLength)
Constructs Content object, for use when encoding is not known separately but may be present in media type string. |
|
Content(InputStream inputStream,
String mediaType,
long contentLength,
String encoding,
String language)
Constructs Content object, for use when media subtype and encoding are available as individual values. |
|
| Method Summary | |
void |
close()
Close content input stream. |
IContentMetadata |
getContentMetadata()
Get the metadata attribute of the Content object. |
InputStream |
getInputStream()
Get the inputStream attribute of the Content object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected IContentMetadata contentMetadata
| Constructor Detail |
public Content(InputStream inputStream,
IContentMetadata contentMetadata)
inputStream - input streamcontentMetadata - content metadata
public Content(InputStream inputStream,
String mediaType,
long contentLength,
String encoding,
String language)
inputStream - input streammediaType - media type of content (trailing parameters are ignored)contentLength - length of content (use -1 when unknown)encoding - character encoding (use null when unknown)language - content language (use null when unknown)
public Content(InputStream inputStream,
String mediaType,
long contentLength)
inputStream - input streammediaType - media type of content (trailing parameters except encoding
information is ignored)contentLength - length of content (use -1 when unknown)| Method Detail |
public InputStream getInputStream()
throws ResourceException
getInputStream in interface IContentResourceException - Exception raised in failure situation
public IContentMetadata getContentMetadata()
throws ResourceException
getContentMetadata in interface IContentResourceException - Exception raised in failure situationpublic void close()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||