org.ksoap2.serialization
Class MarshalDate
java.lang.Object
org.ksoap2.serialization.MarshalDate
- All Implemented Interfaces:
- Marshal
public class MarshalDate
- extends Object
- implements Marshal
Marshal class for Dates.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATE_CLASS
public static Class DATE_CLASS
MarshalDate
public MarshalDate()
readInstance
public Object readInstance(org.xmlpull.v1.XmlPullParser parser,
String namespace,
String name,
PropertyInfo expected)
throws 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 parsernamespace
- the namespace.
- Returns:
- the object read from the xml stream.
- Throws:
IOException
org.xmlpull.v1.XmlPullParserException
writeInstance
public void writeInstance(org.xmlpull.v1.XmlSerializer writer,
Object obj)
throws 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 surrounding 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:
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.
Copyright © 2002-2011. All Rights Reserved.