com.aliyun.mns.common.parser
类 JAXBResultParser
java.lang.Object
com.aliyun.mns.common.parser.JAXBResultParser
- 所有已实现的接口:
- ResultParser<Object>
public class JAXBResultParser
- extends Object
- implements ResultParser<Object>
Implementation of ResultParser with JAXB.
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAXBResultParser
public JAXBResultParser(Class<?> modelClass)
parse
public Object parse(String content)
throws ResultParseException
- 抛出:
ResultParseException
parse
public Object parse(ResponseMessage response)
throws ResultParseException
- 从接口
ResultParser 复制的描述
- Converts the result from stream to a java object.
- 指定者:
- 接口
ResultParser<Object> 中的 parse
- 返回:
- The java Type T object that the result stands for.
- 抛出:
ResultParseException - Failed to parse the result.
parse
public Object parse(InputStream is)
throws ResultParseException
- 抛出:
ResultParseException
Copyright © 2016. All Rights Reserved.