Examples of deserialize()


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

  @Override
  public List<LuceneWork> toLuceneWorks(byte[] data) {
    try {
      Deserializer deserializer = provider.getDeserializer();
      LuceneWorkHydrator hydrator = new LuceneWorkHydrator( searchFactory );
      deserializer.deserialize( data, hydrator );
      return hydrator.getLuceneWorks();
    }
    catch ( RuntimeException e ) {
      if ( e instanceof SearchException ) {
        throw e;
View Full Code Here

Examples of org.infoglue.deliver.util.webservices.DynamicWebserviceSerializer.deserialize()

        logger.info("***************************************");
       
        try
        {
      final DynamicWebserviceSerializer serializer = new DynamicWebserviceSerializer();
            List users = (List) serializer.deserialize(inputsArray);
          logger.info("users:" + users);

            initializePrincipal(principalName);
           
          Iterator usersIterator = users.iterator();
View Full Code Here

Examples of org.jboss.ws.core.binding.DeserializerSupport.deserialize()

                        deElement.addNamespaceDeclaration(prefix, nsURI);
                  }

                  Source xmlFragment = new DOMSource(deElement);
                  DeserializerSupport des = (DeserializerSupport)desFactory.getDeserializer();
                  Object userEx = des.deserialize(xmlName, xmlType, xmlFragment, serContext);
                  if (userEx == null || (userEx instanceof Exception) == false)
                     throw new WSException("Invalid deserialization result: " + userEx);

                  faultEx.initCause((Exception)userEx);
               }
View Full Code Here

Examples of org.jitterbit.integration.client.entity.settings.FileResource.deserialize()

        synchronized (this) {
            if (info == null) {
                FileResource projectResource = getInfoResource();
                if (projectResource.exists()) {
                    try {
                        info = projectResource.deserialize(DataFilesInfo.class);
                    } catch (Exception e) {
                        ErrorLog.log(this, "Corrupt project data.", e);
                        projectResource.delete();
                    }
                }
View Full Code Here

Examples of org.kie.services.client.serialization.JaxbSerializationProvider.deserialize()

            }
            // extract response
            assert response != null : "Response is empty.";
            try {
                String xmlStr = ((TextMessage) response).getText();
                cmdResponses = (JaxbCommandsResponse) serializationProvider.deserialize(xmlStr);
            } catch (JMSException jmse) {
                throw new RemoteCommunicationException("Unable to extract " + JaxbCommandsResponse.class.getSimpleName()
                        + " instance from JMS response.", jmse);
            } catch (SerializationException se) {
                throw new RemoteCommunicationException("Unable to extract " + JaxbCommandsResponse.class.getSimpleName()
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceLoader.deserialize()

  {
    final ResourceLoader resourceLoader = new ClassloaderResourceLoader();
   
    // Test failure - null input
    try {
      resourceLoader.deserialize(null, null);
      fail("Deserialize should throw an exception on null parameter");
    } catch (IllegalArgumentException iae) {
      // success
    }
   
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.deserialize()

        if ("resource-key".equals(type))
        {
          final ResourceManager resourceManager = getRootHandler().getResourceManager();
          final ResourceKey key = getRootHandler().getContext();
          final ResourceKey parent = key.getParent();
          final ResourceKey valueKey = resourceManager.deserialize(parent, attributeValue);

          // make local ..
          final ResourceKey resourceKey = localizeKey(resourceManager, valueKey);
          element.setAttribute(namespace, name, resourceKey);
          return;
View Full Code Here

Examples of org.perl6.nqp.sixmodel.SerializationReader.deserialize()

                binaryBlob = Base64.decode(blob);
            }

            SerializationReader sr = new SerializationReader(
                    tc, sc, shArray, crArray, crCount, binaryBlob);
            sr.deserialize();

            return blob;
        }
        else {
            throw ExceptionHandling.dieInternal(tc, "deserialize was not passed a valid SCRef");
View Full Code Here

Examples of org.platformlayer.xml.JaxbHelper.deserialize()

    try {
      Class<T> objectClass = (Class<T>) o.getClass();
      JaxbHelper jaxbHelper = JaxbHelper.get(objectClass);

      String xml = JaxbHelper.toXml(o, false);
      return jaxbHelper.deserialize(new StringReader(xml), objectClass);
    } catch (UnmarshalException e) {
      throw new IllegalStateException("Error while cloning object", e);
    } catch (JAXBException e) {
      throw new IllegalStateException("Error while cloning object", e);
    }
View Full Code Here

Examples of org.qi4j.api.json.JSONDeserializer.deserialize()

            JSONObjectSerializer serializer = new JSONObjectSerializer();
            serializer.serialize( prototype, model.model().valueType() );
            Object object = serializer.getRoot();

            JSONDeserializer deserializer = new JSONDeserializer( model.module() );
            value = deserializer.deserialize( object, model.model().valueType() );
        } catch( JSONException e )
        {
            throw new IllegalStateException( "Could not JSON-copy Value", e );
        }
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.