Examples of deserialize()


Examples of org.eclipse.persistence.sessions.serializers.Serializer.deserialize()

        Object object = null;
        try {
            Serializer serializer = this.rcm.getSerializer();
            if (serializer != null) {
                object = serializer.deserialize(message.getBuffer(), (AbstractSession)this.rcm.getCommandProcessor());
            } else {
                object = message.getObject();           
            }
        } catch (Exception exception) {
            failDeserializeMessage(null, exception);
View Full Code Here

Examples of org.eclipse.php.debug.core.debugger.messages.IDebugMessage.deserialize()

              }
            }

            // handle the message
            if (message instanceof IDebugNotificationMessage) {
              message.deserialize(in);
              // getCommunicationClient().handleNotification((Notification)message);
              // PUT NOTIFICATION TO NOTIFICATION QUEUE
              inputMessageHandler.queueIn(message);
            } else if (message instanceof IDebugResponseMessage) {
              message.deserialize(in);
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService.deserialize()

      Log.error("Could not get ICommandService or IHandlerService while trying to execute: " + command, null); //$NON-NLS-1$
      return false;
    }

    try {
      ParameterizedCommand pCommand = commandService.deserialize(command);
      pCommand.executeWithChecks(null, handlerService.getCurrentState());

      // Executed command successfully. Now set intro standby if needed.
      if (standbyState == null)
        return true;
View Full Code Here

Examples of org.fcrepo.server.storage.translation.AtomDODeserializer.deserialize()

        // deserialize the object
        DigitalObject candidate = new BasicDigitalObject();
        DODeserializer deserA = new AtomDODeserializer();
        InputStream in = new FileInputStream(f);
        deserA.deserialize(in,
                           candidate,
                           "utf-8",
                           DOTranslationUtility.DESERIALIZE_INSTANCE);

        // check the deserialization
View Full Code Here

Examples of org.fcrepo.server.storage.translation.DODeserializer.deserialize()

        File f = File.createTempFile("test", null);
        OutputStream out = new FileOutputStream(f);

        DODeserializer deser = new FOXML1_1DODeserializer();
        DigitalObject obj = new BasicDigitalObject();
        deser.deserialize(in, obj, "UTF-8", DESERIALIZE_INSTANCE);

        // some sanity checks
        setObjectDefaults(obj);

        DOSerializer serializer = new AtomDOSerializer();
View Full Code Here

Examples of org.fcrepo.server.storage.translation.DOTranslator.deserialize()

            if (trans == null) {
                throw new IOException("DOTranslator module not found via getModule");
            }
            DigitalObject obj = new BasicDigitalObject();
            System.out.println("Deserializing...");
            trans.deserialize(in,
                              obj,
                              args[1],
                              args[2],
                              DOTranslationUtility.DESERIALIZE_INSTANCE);
            System.out.println("Done.");
View Full Code Here

Examples of org.fcrepo.server.storage.translation.DOTranslatorImpl.deserialize()

            desers.put(METS_EXT1_1.uri, deser);
            sers.put(METS_EXT1_1.uri, ser);
            DOTranslatorImpl trans = new DOTranslatorImpl(sers, desers);
            DigitalObject obj = new BasicDigitalObject();
            System.out.println("Deserializing...");
            trans.deserialize(in,
                              obj,
                              METS_EXT1_1.uri,
                              "UTF-8",
                              DOTranslationUtility.DESERIALIZE_INSTANCE);
            System.out.println("Done.");
View Full Code Here

Examples of org.fcrepo.server.storage.translation.FOXML1_1DODeserializer.deserialize()

            throws FileNotFoundException, ObjectIntegrityException, StreamIOException, UnsupportedEncodingException {
        FOXML1_1DODeserializer deserialiser = new FOXML1_1DODeserializer();
        BasicDigitalObject object = new BasicDigitalObject();
        FileInputStream in = new FileInputStream(
                "src/main/resources/utilities/server/org/fcrepo/server/resources/fedora-system_FedoraObject-3.0.xml");
        deserialiser.deserialize(in, object, "UTF-8", DOTranslationUtility.AS_IS);
        return object;

    }

    public static DigitalObject produceContentModel30()
View Full Code Here

Examples of org.fudgemsg.FudgeContext.deserialize()

    Thread.sleep(100);
    assertEquals(1, _collectingReceiver.getMessages().size());
   
    FudgeDeserializer deserializer = new FudgeDeserializer(fudgeContext);
    for (byte[] byteArray : _collectingReceiver.getMessages()) {
      FudgeMsgEnvelope msgEnvelope = fudgeContext.deserialize(byteArray);
      LiveDataValueUpdateBean update = LiveDataValueUpdateBeanFudgeBuilder.fromFudgeMsg(deserializer, msgEnvelope.getMessage());
      assertEquals(msg, update.getFields());
    }
  }
View Full Code Here

Examples of org.hibernate.search.indexes.serialization.codex.spi.Deserializer.deserialize()

   */
  @Override
  public List<LuceneWork> toLuceneWorks(byte[] data) {
    Deserializer deserializer = provider.getDeserializer();
    LuceneWorkHydrator hydrator = new LuceneWorkHydrator( searchFactory );
    deserializer.deserialize( data, hydrator );
    return hydrator.getLuceneWorks();
  }


  private void buildDocument(Document document, Serializer serializer) {
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.