Examples of writeTo()


Examples of org.apache.wink.common.internal.providers.entity.csv.CsvSyndFeedSerializerProvider.writeTo()

            }
        });

        ByteArrayOutputStream os = new ByteArrayOutputStream();
        MultivaluedMapImpl<String, Object> httpHeaders = new MultivaluedMapImpl<String, Object>();
        syndFeedSerializerProvider.writeTo(syndFeed,
                                           syndFeed.getClass(),
                                           null,
                                           null,
                                           MediaTypeUtils.CSV,
                                           httpHeaders,
View Full Code Here

Examples of org.apache.wink.common.internal.providers.entity.opensearch.OpenSearchDescriptionProvider.writeTo()

        OpenSearchDescriptionProvider provider = new OpenSearchDescriptionProvider();

        ByteArrayOutputStream os = new ByteArrayOutputStream();
        String expectedSerialization = null;
        try {
            provider.writeTo(buildOpenSearchDescriptor(BASE_URL),
                             OpenSearchDescription.class,
                             null,
                             null,
                             MediaTypeUtils.OPENSEARCH_TYPE,
                             null,
View Full Code Here

Examples of org.box2d.proto.Box2D.PbBody.writeTo()

    }
    final PbBody body = builder.build();
    return new SerializationResult() {
      @Override
      public void writeTo(OutputStream argOutputStream) throws IOException {
        body.writeTo(argOutputStream);
      }

      @Override
      public Object getValue() {
        return body;
View Full Code Here

Examples of org.box2d.proto.Box2D.PbFixture.writeTo()

  public SerializationResult serialize(Fixture argFixture) {
    final PbFixture fixture = serializeFixture(argFixture).build();
    return new SerializationResult() {
      @Override
      public void writeTo(OutputStream argOutputStream) throws IOException {
        fixture.writeTo(argOutputStream);
      }

      @Override
      public Object getValue() {
        return fixture;
View Full Code Here

Examples of org.box2d.proto.Box2D.PbJoint.writeTo()

    }
    final PbJoint joint = builder.build();
    return new SerializationResult() {
      @Override
      public void writeTo(OutputStream argOutputStream) throws IOException {
        joint.writeTo(argOutputStream);
      }

      @Override
      public Object getValue() {
        return joint;
View Full Code Here

Examples of org.box2d.proto.Box2D.PbShape.writeTo()

    // should we do lazy building?
    final PbShape shape = builder.build();
    return new SerializationResult() {
      @Override
      public void writeTo(OutputStream argOutputStream) throws IOException {
        shape.writeTo(argOutputStream);
      }

      @Override
      public Object getValue() {
        return shape;
View Full Code Here

Examples of org.box2d.proto.Box2D.PbWorld.writeTo()

  public SerializationResult serialize(World argWorld) {
    final PbWorld world = serializeWorld(argWorld).build();
    return new SerializationResult() {
      @Override
      public void writeTo(OutputStream argOutputStream) throws IOException {
        world.writeTo(argOutputStream);
      }

      @Override
      public Object getValue() {
        return world;
View Full Code Here

Examples of org.browsermob.proxy.jetty.util.ByteArrayISO8859Writer.writeTo()

 
        writer.write("\n</BODY>\n</HTML>\n");
        writer.flush();
        response.setContentLength(writer.size());
        OutputStream out=response.getOutputStream();
        writer.writeTo(out);
        out.close();
    }
}
View Full Code Here

Examples of org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider.writeTo()

    JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();

    File in = File.createTempFile(object.getClass().getName() + "In", ".json", this.tempDir);
    File out = File.createTempFile(object.getClass().getName() + "Out", ".json", this.tempDir);
    FileOutputStream fos = new FileOutputStream(in);
    provider.writeTo(object, null, null, null, null, null, fos);
    fos.close();
    Process process = new ProcessBuilder(this.phpExe, this.exe.getAbsolutePath(), packageToModule(object.getClass().getName()), in.getAbsolutePath(), out.getAbsolutePath())
      .directory(this.exe.getParentFile())
      .redirectErrorStream(true)
      .start();
View Full Code Here

Examples of org.cojen.classfile.Attribute.writeTo()

       
        int size = mAttributes.size();
        dout.writeShort(size);
        for (int i=0; i<size; i++) {
            Attribute attr = mAttributes.get(i);
            attr.writeTo(dout);
        }

        mOldLineNumberTable = null;
        mOldLocalVariableTable = null;
        mOldStackMapTable = null;
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.