Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utils Converters.class中报错 #4

Open
yinjun622 opened this issue Feb 14, 2014 · 1 comment
Open

utils Converters.class中报错 #4

yinjun622 opened this issue Feb 14, 2014 · 1 comment

Comments

@yinjun622
Copy link

public static String parseDoubanObjToXMLStr(T obj) throws IOException {
XmlHttpContent content = new XmlHttpContent(DefaultConfigs.DOUBAN_XML_NAMESPACE, "entry", obj);
ByteArrayOutputStream os = new ByteArrayOutputStream();
content.writeTo(os);
String result = new String(os.toByteArray());
return result;
}

content.writeTo(os);

这块报错看了一下
import com.google.api.client.http.xml.XmlHttpContent; 1.10.3版本
中只有writeTo(XmlSerializer serializer)该方法~~

是不是我这边的问题~

@UglyTroLL
Copy link
Owner

您是直接用maven编译的吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants