IBM Support

What technology/algorithm does Sterling Application (Platform, Foundation) use for XML Compression? *|* -966E4E703F785B7A

Question & Answer


Question

What technology/algorithm does Sterling Application (Platform, Foundation) use for XML Compression? *|* -966E4E703F785B7A8525791700446590- *|*

Answer

Technote (FAQ)


Question

What technology/algorithm does Sterling Application (Platform Foundation) use for XML Compression?

Answer

1.????In the platform for handling XMLs in the Configurator Sterling uses ZIP format for compression by invoking 'ZipOutputStream.class' of java.util.zip.

Below sample code snippet can be used for reference:

protected void serializeDocument (YFCDocument doc HttpServletResponse resp boolean compressData) throws IOException {
if (!compressData) {
????????????????? doc.serialize(resp.getOutputStream());
????? } else {
????????????????? resp.setHeader("YFC-IsCompressed""true");
????????????????? ZipOutputStream out = new ZipOutputStream(resp.getOutputStream());
????????????????? ZipEntry entry = new ZipEntry("YFCData.xml");
????????????????? out.putNextEntry(entry);
????????????????? doc.serialize(out);
????????????????? out.closeEntry();
????????????????? out.flush();
????????????????? out.close();
????? } ?

2.?????While configuring JMS or any other queues in the service definition framework whenever one check the 'Needs Compression' flag the application creates a BytesMessage object using session.createBytesMessage instead of normal text message to put in JMS.
For more information on the BytesMessage please refer to (http://java.sun.com/products/jms/javadoc-102a/index.html).
There is no explicit compression done by Sterling other than above here.

3.?????From XML compressions in RCP (Rich Client Platform) please refer the article NFX5007. RCP uses GZIP compression technique.

Historical Number

FAQ3197


[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SS73G6","label":"Sterling Total Payments for Financial Services"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

More support for:
Sterling Total Payments for Financial Services

Software version:
All Versions

Document number:
768455

Modified date:
12 October 2021

UID

ibm10768455

Manage My Notification Subscriptions