本文整理汇总了Java中com.google.api.client.xml.XmlNamespaceDictionary类的典型用法代码示例。如果您正苦于以下问题:Java XmlNamespaceDictionary类的具体用法?Java XmlNamespaceDictionary怎么用?Java XmlNamespaceDictionary使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XmlNamespaceDictionary类属于com.google.api.client.xml包,在下文中一共展示了XmlNamespaceDictionary类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: XmlEntity
import com.google.api.client.xml.XmlNamespaceDictionary; //导入依赖的package包/类
/**
* Constructs a new XmlEntity class.
*/
public XmlEntity() throws XmlPullParserException {
super.namespaceDictionary = new XmlNamespaceDictionary();
super.namespaceDictionary.set("s3", "http://s3.amazonaws.com/doc/2006-03-01/");
super.namespaceDictionary.set("", "");
this.xmlPullParser = Xml.createParser();
this.defaultNamespaceDictionary = new XmlNamespaceDictionary();
}
示例2: parseXml
import com.google.api.client.xml.XmlNamespaceDictionary; //导入依赖的package包/类
/**
* Fills up this ErrorResponse object's fields by reading/parsing values from given Reader input stream.
*/
@Override
public void parseXml(Reader reader) throws IOException, XmlPullParserException {
XmlNamespaceDictionary namespaceDictionary = new XmlNamespaceDictionary();
namespaceDictionary.set("", "");
super.parseXml(reader, namespaceDictionary);
}
示例3: GDataXmlClient
import com.google.api.client.xml.XmlNamespaceDictionary; //导入依赖的package包/类
protected GDataXmlClient(String gdataVersion, HttpRequestFactory requestFactory,
XmlNamespaceDictionary namespaceDictionary) {
super(gdataVersion, requestFactory);
this.namespaceDictionary = namespaceDictionary;
}
示例4: getNamespaceDictionary
import com.google.api.client.xml.XmlNamespaceDictionary; //导入依赖的package包/类
public XmlNamespaceDictionary getNamespaceDictionary() {
return namespaceDictionary;
}
示例5: parseXml
import com.google.api.client.xml.XmlNamespaceDictionary; //导入依赖的package包/类
/**
* Parses content from given reader input stream and namespace dictionary.
*/
protected void parseXml(Reader reader, XmlNamespaceDictionary namespaceDictionary)
throws IOException, XmlPullParserException {
this.xmlPullParser.setInput(reader);
Xml.parseElement(this.xmlPullParser, this, namespaceDictionary, null);
}