Examples of XMLSerializer


Examples of org.htmlcleaner.XmlSerializer

  private static TagNode parse(String document) throws IOException {
    return getCleaner().clean(document);
  }
 
  private static String write(TagNode node) throws IOException {
    XmlSerializer serializer = new PrettyXmlSerializer(getCleaner()
        .getProperties());
    StringWriter writer = new StringWriter();
    node.serialize(serializer, writer);
    return writer.toString();
  }

Examples of org.jasig.portal.serialize.XMLSerializer

            }

            if (serOut == null) {
                // default to XML serializer
                final OutputFormat frmt = new OutputFormat("XML", "UTF-8", true);
                serOut = new XMLSerializer(printWriter, frmt);
            }

            localRenderXML(serOut);
        }
    }

Examples of org.jboss.errai.reflections.serializers.XmlSerializer

        return this;
    }

    public Serializer getSerializer() {
        if (serializer == null) {
            serializer = new XmlSerializer(); //lazily defaults to XmlSerializer
        }
        return serializer;
    }

Examples of org.reflections.serializers.XmlSerializer

        setExecutorService(Executors.newFixedThreadPool(availableProcessors));
        return this;
    }

    public Serializer getSerializer() {
        return serializer != null ? serializer : (serializer = new XmlSerializer()); //lazily defaults to XmlSerializer
    }

Examples of org.xmlpull.v1.XmlSerializer

  /** XML namespace dictionary. */
  private final XmlNamespaceDictionary namespaceDictionary;

  public final void writeTo(OutputStream out) throws IOException {
    XmlSerializer serializer = Xml.createSerializer();
    serializer.setOutput(out, getCharset().name());
    writeTo(serializer);
  }

Examples of org.xooof.xmlserializer.XMLSerializer

   throws IOException, SAXException, XmlStructException
   {
       OutputFormat of = new OutputFormat("XML", null, false);
       of.setPreserveSpace(true);
       of.setOmitXMLDeclaration(true);
       XMLSerializer serializer = new XMLSerializer(writer, of);
       ContentHandler ch = serializer.asContentHandler();
       ch.startDocument();
       xmlStruct.xsToSAX(ch,serializationOptions);
       ch.endDocument();
   }

Examples of siena.remote.XmlSerializer

import siena.remote.XmlSerializer;

public class XmlSerializerTest extends TestCase {
 
  public void testXmlSerializer() throws Exception {
    XmlSerializer serializer = new XmlSerializer();
   
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
   
    Document document = DocumentHelper.createDocument();
    document.addElement("root");
    serializer.serialize(document, baos);
   
    Document result = serializer.deserialize(new ByteArrayInputStream(baos.toByteArray()));
   
    assertEquals(result.getRootElement().getName(),
        document.getRootElement().getName());
  }
TOP
Copyright © 2018 www.massapi.com. 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.