org.ksoap2.serialization
Class MarshalBase64

java.lang.Object
  extended by org.ksoap2.serialization.MarshalBase64
All Implemented Interfaces:
Marshal

public class MarshalBase64
extends java.lang.Object
implements Marshal

Base64 (de)serializer


Field Summary
static java.lang.Class BYTE_ARRAY_CLASS
           
 
Constructor Summary
MarshalBase64()
           
 
Method Summary
 java.lang.Object readInstance(org.xmlpull.v1.XmlPullParser parser, java.lang.String namespace, java.lang.String name, PropertyInfo expected)
          This methods reads an instance from the given parser.
 void register(SoapSerializationEnvelope cm)
          Register this Marshal with Envelope
 void writeInstance(org.xmlpull.v1.XmlSerializer writer, java.lang.Object obj)
          Write the instance to the given XmlSerializer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BYTE_ARRAY_CLASS

public static java.lang.Class BYTE_ARRAY_CLASS
Constructor Detail

MarshalBase64

public MarshalBase64()
Method Detail

readInstance

public java.lang.Object readInstance(org.xmlpull.v1.XmlPullParser parser,
                                     java.lang.String namespace,
                                     java.lang.String name,
                                     PropertyInfo expected)
                              throws java.io.IOException,
                                     org.xmlpull.v1.XmlPullParserException
Description copied from interface: Marshal
This methods reads an instance from the given parser. For implementation, please note that the start and and tag must be consumed. This is not symmetric to writeInstance, but otherwise it would not be possible to access the attributes of the start tag here.

Specified by:
readInstance in interface Marshal
Parameters:
parser - the xml parser
namespace - the namespace.
Returns:
the object read from the xml stream.
Throws:
java.io.IOException
org.xmlpull.v1.XmlPullParserException

writeInstance

public void writeInstance(org.xmlpull.v1.XmlSerializer writer,
                          java.lang.Object obj)
                   throws java.io.IOException
Description copied from interface: Marshal
Write the instance to the given XmlSerializer. In contrast to readInstance, it is not neccessary to care about the sorrounding start and end tags. Additional attributes must be writen before anything else is written.

Specified by:
writeInstance in interface Marshal
Parameters:
writer - the xml serializer.
obj - the instance to write to the writer.
Throws:
java.io.IOException

register

public void register(SoapSerializationEnvelope cm)
Description copied from interface: Marshal
Register this Marshal with Envelope

Specified by:
register in interface Marshal
Parameters:
cm - the soap serialization envelope.