marshal.java

来自「这个应用程序的总体思路其实很简单」· Java 代码 · 共 43 行

JAVA
43
字号
package org.ksoap;import java.io.*;import org.kobjects.serialization.*;/** Abstract class for custom (de)serialization. */public 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. The underlying XML parser is accessible        using parser.parser. */    public Object readInstance (SoapParser parser, 				String namespace, String name,				ElementType expected) throws IOException;    /** Write the instance to the given SoapWriter. 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. The underlying xml	writer is accessible using writer.writer. */    public void writeInstance (SoapWriter writer, 			       Object instance) throws IOException;    /** Register this Marshal with the given classMap */    public void register (ClassMap cm);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?