com.oroad.stxx.xform
Class ZipEncoder

java.lang.Object
  extended bycom.oroad.stxx.xform.ZipEncoder
All Implemented Interfaces:
Encoder

public class ZipEncoder
extends java.lang.Object
implements Encoder

Encodes and decodes information to and from base64-encoded Strings using zip compression

Author:
Don Brown

Constructor Summary
ZipEncoder()
           
 
Method Summary
 void decodeXMLForm(java.lang.String vs, XMLForm xform)
          Decodes XMLForm's xml and phase from a base64-encoded string
 java.lang.String encodeXMLForm(XMLForm form)
          Encodes XMLForm's xml and phase information into a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipEncoder

public ZipEncoder()
Method Detail

encodeXMLForm

public java.lang.String encodeXMLForm(XMLForm form)
Encodes XMLForm's xml and phase information into a string

Specified by:
encodeXMLForm in interface Encoder
Parameters:
form - The xmlform
Returns:
A base64-encoded string

decodeXMLForm

public void decodeXMLForm(java.lang.String vs,
                          XMLForm xform)
Decodes XMLForm's xml and phase from a base64-encoded string

Specified by:
decodeXMLForm in interface Encoder
Parameters:
vs - The base64-encoded string
xform - The form to populate