public class ICEItem extends ICEItemBase
Detailed information about the ICE package structur could be found in the ICE 1.1 specification http://www.icestandard.com/spec/SPEC-ICE1.01-20000511.html#section5.2 section 5.2 , the ice-item element is described in http://www.icestandard.com/spec/SPEC-ICE1.01-20000511.html#section5.2.2.1 section 5.2.2.1 BORDER CELLSPACING=2 CELLPADDING=0 class="dtdfrag"ice-item format <!ENTITY % attlist.item " activation CDATA #IMPLIED expiration CDATA #IMPLIED content-filename CDATA #IMPLIED content-transfer-encoding (base64 | x-native-xml) 'x-native-xml' content-type CDATA 'application/octet-stream' ip-status CDATA #IMPLIED xml:lang CDATA #IMPLIED license CDATA #IMPLIED rights-holder CDATA #IMPLIED show-credit CDATA #IMPLIED subscription-element CDATA #IMPLIED "> <!ENTITY % cm.item "#PCDATA" > <!ELEMENT ice-item (%cm.item;) > <!ATTLIST ice-item %attlist.item; ice-element CDATA #FIXED 'ice-item' name CDATA #REQUIRED item-id CDATA #REQUIRED >
Copyright 2004 SAP AG
Constructor and Description |
---|
ICEItem(Attributes attributes)
Create a new ICE item.
|
ICEItem(String itemID,
String name,
String subscriptionElement,
String contentFilename,
String contentType,
InputStream contentStream)
Create a new ICE item.
|
Modifier and Type | Method and Description |
---|---|
ICEContentEncoding |
getContentEncoding()
Get the transfer encoding of the ICE item.
|
String |
getContentFilename()
Get the relative filename of the ICE item.
|
InputStream |
getContentStream()
Get the content of the ICE item as InputStream.
|
String |
getContentType()
Get the mime type of the content.
|
String |
getItemID()
Get the identifier of the ICE item within the package.
|
String |
getName()
Get the logical name of the ICE item.
|
String |
getSubscriptionElement()
Get the persistent identifier of the item in the subscription context that should be added or
modified.
|
void |
write(ContentHandler handler)
Write the XML representation of the ICE element to a SAX ContentHandler.
|
boolean |
writeChunk(ContentHandler handler)
Write a chunk of XML to a SAX ContentHandler.
|
public static final String TAGNAME
public ICEItem(String itemID, String name, String subscriptionElement, String contentFilename, String contentType, InputStream contentStream)
itemID
- The id of the itemname
- The logical name of the itemsubscriptionElement
- The id of the item in the subscription context (might be null)contentFilename
- The filename of the content (might be null)contentType
- The type of the content (mime-type)contentStream
- An InputStream of the content of the itempublic ICEItem(Attributes attributes) throws SAXException
attributes
- The attributes of the ice-item tagSAXException
- Exception raised in failure situationSAXException
- if the ice-item tag is invalidpublic ICEContentEncoding getContentEncoding()
public String getItemID()
public String getName()
public InputStream getContentStream() throws IOException
IOException
- Exception raised in failure situationpublic String getContentType()
public String getContentFilename()
public String getSubscriptionElement()
public void write(ContentHandler handler) throws SAXException
handler
- The SAX ContentHandler (usually an XMLSerializer)SAXException
- on error (might wrap another exception)public boolean writeChunk(ContentHandler handler) throws SAXException
handler
- The SAX ContentHandler (usually a XMLSerializer)SAXException
- on error (might wrap another exception)Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice