Examples of marshall()


Examples of org.apache.poi.openxml4j.opc.internal.PartMarshaller.marshall()

            + ZipHelper.getZipItemNameFromOPCName(part
                .getPartName().getName()) + "'");
        PartMarshaller marshaller = partMarshallers
            .get(part.contentType);
        if (marshaller != null) {
          if (!marshaller.marshall(part, zos)) {
            throw new OpenXML4JException(
                "The part "
                    + part.getPartName().getURI()
                    + " fail to be saved in the stream with marshaller "
                    + marshaller);
View Full Code Here

Examples of org.apache.poi.openxml4j.opc.internal.PartMarshaller.marshall()

            + ZipHelper.getZipItemNameFromOPCName(part
                .getPartName().getName()) + "'");
        PartMarshaller marshaller = partMarshallers
            .get(part._contentType);
        if (marshaller != null) {
          if (!marshaller.marshall(part, zos)) {
            throw new OpenXML4JException(
                "The part "
                    + part.getPartName().getURI()
                    + " fail to be saved in the stream with marshaller "
                    + marshaller);
View Full Code Here

Examples of org.apache.qpid.disttest.json.JsonHandler.marshall()

        try
        {
            jmsMessage = session.createMessage();
            jmsMessage.setStringProperty(DistributedTestConstants.MSG_COMMAND_PROPERTY, command.getType().name());
            final JsonHandler jsonHandler = new JsonHandler();
            jmsMessage.setStringProperty(DistributedTestConstants.MSG_JSON_PROPERTY, jsonHandler.marshall(command));
        }
        catch (final JMSException jmse)
        {
            throw new DistributedTestException("Unable to convert command " + command + " to JMS Message", jmse);
        }
View Full Code Here

Examples of org.apache.woden.wsdl20.extensions.ExtensionSerializer.marshall()

                            "' element in the context of a '" +
                            parentType.getName() + "'.");
                }
                ExtensionSerializer extSer = extReg.querySerializer(parentType,
                        elementType);
                extSer.marshall(parentType, elementType, ext, pw, def, extReg);
            }

        }

    }
View Full Code Here

Examples of org.atomojo.app.db.RemoteApp.marshall()

               ItemConstructor constructor = InfosetFactory.getDefaultInfoset().createItemConstructor();
               dest.send(constructor.createDocument());
               dest.send(constructor.createElement(AdminXML.NM_APPS));
               while (apps.hasNext()) {
                  RemoteApp app = apps.next();
                  app.marshall();;
                  DocumentSource.generate(app.getElement(),false,dest);
               }
               dest.send(constructor.createElementEnd(AdminXML.NM_APPS));
               dest.send(constructor.createDocumentEnd());
               out.flush();
View Full Code Here

Examples of org.atomojo.app.db.SyncProcess.marshall()

               ItemConstructor constructor = InfosetFactory.getDefaultInfoset().createItemConstructor();
               dest.send(constructor.createDocument());
               dest.send(constructor.createElement(AdminXML.NM_SYNC_PROCESSES));
               while (procs.hasNext()) {
                  SyncProcess proc = procs.next();
                  proc.marshall();
                  DocumentSource.generate(proc.getElement(),false,dest);
               }
               dest.send(constructor.createElementEnd(AdminXML.NM_SYNC_PROCESSES));
               dest.send(constructor.createDocumentEnd());
               out.flush();
View Full Code Here

Examples of org.atomojo.app.db.SyncTarget.marshall()

               ItemConstructor constructor = InfosetFactory.getDefaultInfoset().createItemConstructor();
               dest.send(constructor.createDocument());
               dest.send(constructor.createElement(AdminXML.NM_TARGETS));
               while (targets.hasNext()) {
                  SyncTarget target = targets.next();
                  target.marshall();
                  DocumentSource.generate(target.getElement(),false,dest);
               }
               dest.send(constructor.createElementEnd(AdminXML.NM_TARGETS));
               dest.send(constructor.createDocumentEnd());
               out.flush();
View Full Code Here

Examples of org.davinci.server.review.persistence.Marshaller.marshall()

    doc.setCommentList(new ArrayList<Comment>(reviewHash.values()));

    Marshaller marshaller = new Marshaller(project);
    try {
      synchronized(project){
        marshaller.marshall(false);
        reviewHash.put(LAST_ACCESS_TIME, lastAccessTime);
        return true;
      }
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of org.drools.core.marshalling.impl.ProtobufMarshaller.marshall()

        // Serialize object
        final byte [] b1;
        {
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            marshaller.marshall( bos,
                                 ksession,
                                 time );
            b1 = bos.toByteArray();
            bos.close();
        }
View Full Code Here

Examples of org.drools.marshalling.Marshaller.marshall()

        Marshaller marshaller = MarshallerFactory.newMarshaller( ksession.getKnowledgeBase(),
                                                                 new ObjectMarshallingStrategy[]{strategy} );

        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        marshaller.marshall( bos,
                             ksession );
        final byte[] b1 = bos.toByteArray();
        bos.close();

        ByteArrayInputStream bais = new ByteArrayInputStream( b1 );
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.