Examples of writer()


Examples of org.codehaus.jackson.map.ObjectMapper.writer()

        for ( ServiceInstance<T> instance : instanceList )
        {
            ObjectNode node = JsonServiceInstanceMarshaller.writeInstance(mapper, instance, context);
            arrayNode.add(node);
        }
        mapper.writer().writeValue(entityStream, arrayNode);
    }
}
View Full Code Here

Examples of org.codehaus.jackson.map.ObjectMapper.writer()

      try {
        ObjectMapper mapper = new ObjectMapper();
        mapper.configure(SerializationConfig.Feature.SORT_PROPERTIES_ALPHABETICALLY, true);
        ObjectWriter writer = this.formattedOutput
          ? mapper.writerWithDefaultPrettyPrinter()
          : mapper.writer();
         
        return writer.writeValueAsString(obj);
      } catch (Exception ex) {
        throw new JuRuntimeException("Marshalling of object to JSON failed", ex);
      }
View Full Code Here

Examples of org.geotools.data.TransactionStateDiff.writer()

        //assertTrue(reader instanceof DiffFeatureReader);  //currently it is being wraped by a FilteringFeatureReader
        assertEquals(type, reader.getFeatureType());
        assertEquals(1, count(reader));

        TransactionStateDiff state = (TransactionStateDiff) t.getState(data);
        FeatureWriter<SimpleFeatureType, SimpleFeature> writer = state.writer("road", Filter.INCLUDE);
        SimpleFeature feature;

        while (writer.hasNext()) {
            feature = writer.next();
View Full Code Here

Examples of org.metagrid.gatekeeper.common.io.test.StringResource.writer()

                ),
            "test data"
            );
        //
        // Get a java IO writer for the resource.
        Writer writer = resource.writer();
        //
        // Create our Node writer.
        XMLNodeWriter<Node> nodewriter = new XMLNodeWriterImpl<Node>();
        //
        // Write a node ....
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.