Examples of XppDriver


Examples of com.thoughtworks.xstream.io.xml.XppDriver

      RoomRecording roomRecording = roomRecordingList.get(roomrecordingName);
     
      Date recordingsStartTime = roomRecording.getStarttime();
      Date currentDate = new Date();
     
      XStream xStream = new XStream(new XppDriver());
      xStream.setMode(XStream.NO_REFERENCES);
      String action = xStream.toXML(vars);
     
      WhiteBoardEvent whiteBoardEvent = new WhiteBoardEvent();
      whiteBoardEvent.setStarttime(currentDate.getTime()-recordingsStartTime.getTime());
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.XppDriver

      RoomRecording roomRecording = roomRecordingList.get(roomrecordingName);
     
      Date recordingsStartTime = roomRecording.getStarttime();
      Date currentDate = new Date();
     
      XStream xStream = new XStream(new XppDriver());
      xStream.setMode(XStream.NO_REFERENCES);
      String action = xStream.toXML(vars);
     
      ChatvaluesEvent chatvaluesEvent = new ChatvaluesEvent();
      chatvaluesEvent.setStarttime(currentDate.getTime()-recordingsStartTime.getTime());
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.XppDriver

    {
      xmlWriter = new IndentingXMLStreamWriter(XMLOutputFactory.newInstance().createXMLStreamWriter(writer));
      xmlWriter.writeStartDocument("UTF-8", "1.0");
      xmlWriter.setDefaultNamespace("http://plugins.intellij.net/revu");
      xstreamDataHolder.put(ReviewExternalizerXmlImpl.CONTEXT_KEY_REVIEW, null);
      xstream.marshal(review, new XppDriver().createWriter(writer), xstreamDataHolder);
    }
    catch (XMLStreamException e)
    {
      throw new RevuException("Failed to serialize review: " + review, e);
    }
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.XppDriver

   static private XStream getXStream()
   {
      if (xstream_ == null)
      {
         xstream_ = new XStream(new XppDriver());
         xstream_.alias("user-profile", UserProfileImpl.class);
      }
      return xstream_;
   }
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.XppDriver

     * @throws com.thoughtworks.xstream.XStreamException if the object cannot be deserialized
     * @since 1.2
     * @see #toXML(XStream, Object, Writer)
     */
    public <T> T fromXML(final Reader xml) throws IOException, ClassNotFoundException {
        return fromXML(new XppDriver(), xml);
    }
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.XppDriver

     * @since 1.4.7
     * @see #toXML(XStream, Object, Writer)
     */
    public <T> T fromXML(final Reader xml, final TypePermission... permissions)
            throws IOException, ClassNotFoundException {
        return fromXML(new XppDriver(), xml, permissions);
    }
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.XppDriver

     * </p>
     *
     * @throws InitializationException in case of an initialization problem
     */
    public XStream() {
        this(new XppDriver());
    }
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.XppDriver

     *
     * @param reflectionProvider the reflection provider to use or <em>null</em> for best matching reflection provider
     * @throws InitializationException in case of an initialization problem
     */
    public XStream(final ReflectionProvider reflectionProvider) {
        this(reflectionProvider, new XppDriver());
    }
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.XppDriver

                final MutablePicoContainer picoContainer = new DefaultPicoContainer(createDefaultComponentAdapterFactory());
                final ComponentAdapter componentAdapter = prepSER_isXStreamSerializable(picoContainer);
                assertSame(getComponentAdapterType(), componentAdapter.getClass());
                final Object instance = componentAdapter.getComponentInstance(picoContainer);
                assertNotNull(instance);
                final XStream xstream = new XStream(new XppDriver());
                final String xml = xstream.toXML(componentAdapter);
                final ComponentAdapter serializedComponentAdapter = (ComponentAdapter) xstream.fromXML(xml);
                assertEquals(componentAdapter.getComponentKey(), serializedComponentAdapter.getComponentKey());
                final Object instanceAfterSerialization = serializedComponentAdapter.getComponentInstance(picoContainer);
                assertNotNull(instanceAfterSerialization);
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.XppDriver

  public synchronized static void saveSampleResult(SampleEvent evt, Writer writer) throws IOException {
    DataHolder dh = saver.newDataHolder();
    dh.put(SAMPLE_EVENT_OBJECT, evt);
    // This is effectively the same as saver.toXML(Object, Writer) except we get to provide the DataHolder
    // Don't know why there is no method for this in the XStream class
    saver.marshal(evt.getResult(), new XppDriver().createWriter(writer), dh);
    writer.write('\n');
  }
View Full Code Here
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.