| 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
>
|
- See Also:
Copyright 2004 SAP AG
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TAGNAME
public static final String TAGNAME
- See Also:
- Constant Field Values
ICEItem
public ICEItem(String itemID,
String name,
String subscriptionElement,
String contentFilename,
String contentType,
InputStream contentStream)
- Create a new ICE item.
- Parameters:
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 item
ICEItem
public ICEItem(Attributes attributes)
throws SAXException
- Create a new ICE item. This constructor is used by ICEInput to decode an ICE item from an ICE
payload
- Parameters:
attributes - The attributes of the ice-item tag
- Throws:
SAXException - Exception raised in failure situation
SAXException - if the ice-item tag is invalid
getContentEncoding
public ICEContentEncoding getContentEncoding()
- Get the transfer encoding of the ICE item.
- Returns:
- The transfer encoding of the ICE item
getItemID
public String getItemID()
- Get the identifier of the ICE item within the package.
- Returns:
- The identifier of the ICE item within the package
getName
public String getName()
- Get the logical name of the ICE item.
- Returns:
- The logical name of the ICE item
getContentStream
public InputStream getContentStream()
throws IOException
- Get the content of the ICE item as InputStream.
- Returns:
- An InputStream of the content of the ICE item.
- Throws:
IOException - Exception raised in failure situation
getContentType
public String getContentType()
- Get the mime type of the content.
- Returns:
- The mime type of the content
getContentFilename
public String getContentFilename()
- Get the relative filename of the ICE item.
- Returns:
- The relative filename of the ICE item or null
getSubscriptionElement
public String getSubscriptionElement()
- Get the persistent identifier of the item in the subscription context that should be added or
modified.
- Returns:
- The persistent identifier of the item in the subscription context.
write
public void write(ContentHandler handler)
throws SAXException
- Write the XML representation of the ICE element to a SAX ContentHandler. This method is used by
ICEOutput to create an ICE payload.
- Parameters:
handler - The SAX ContentHandler (usually an XMLSerializer)
- Throws:
SAXException - on error (might wrap another exception)
writeChunk
public boolean writeChunk(ContentHandler handler)
throws SAXException
- Write a chunk of XML to a SAX ContentHandler. This method is used by ICEOutput to write an ICE
payload in chunked mode.
- Parameters:
handler - The SAX ContentHandler (usually a XMLSerializer)
- Returns:
- true if there are more chunks in the queue
- Throws:
SAXException - on error (might wrap another exception)
This class can be accessed from:
|
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 2011 SAP AG Complete Copyright Notice