Package com.google.gdata.util

Examples of com.google.gdata.util.XmlBlob


   * </pre>
   *
   * @param xmlText XML string representing an entity.
   */
  public FeedServerEntry(String xmlText) {
    XmlBlob xmlBlob = new XmlBlob();
    xmlBlob.setBlob(xmlText);
    setXmlBlob(xmlBlob);
    setContent(contentUtil.createXmlContent(xmlText));
  }
View Full Code Here


   *
   * @param xmlText XML source for the associated feed entry.
   * @throws FeedServerClientException if any conversion errors occur parsing the XML.
   */
  public void setContentFromXmlString(String xmlText) throws FeedServerClientException {
    XmlBlob xmlBlob = new XmlBlob();
    xmlBlob.setBlob(xmlText);
    setXmlBlob(xmlBlob);
    setContent(contentUtil.createXmlContent(xmlText));
  }
View Full Code Here

   * @param xmlSource XML source of the payload
   * @return A GData {@code OtherContent} representation of the payload
   */
  public OtherContent createXmlContent(String xmlSource) {
    OtherContent xmlContent = new OtherContent();
    XmlBlob xmlBlob = new XmlBlob();
    xmlBlob.setBlob(xmlSource);
    xmlContent.setXml(xmlBlob);
    xmlContent.setMimeType(APPLICATION_XML);
    return xmlContent;
  }
View Full Code Here

   * Gets an XML description of the payload from a GData {@code  OtherContent}
   * @param content a GData {@code  OtherContent} representation of the payload
   * @return An XML string describing the payload
   */
  public String getXmlFromContent(OtherContent content) {
    XmlBlob xmlBlob = content.getXml();
    return xmlBlob.getBlob();
  }
View Full Code Here

TOP

Related Classes of com.google.gdata.util.XmlBlob

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.