Examples of writeTo()


Examples of org.earth3d.jearth.model.PartsObject.writeTo()

    ImageIO.write(img, imgtype, baos);
    po.addPart(baos.toByteArray());
   
    // write it to a file
//    System.out.println("Write "+new File(directory, getFilename()).getAbsolutePath());
    po.writeTo(new File(directory, getFilename()));
  }

  /**
   * Creates an XML document from the current MapTile.
   *
 
View Full Code Here

Examples of org.eclipse.jetty.util.ByteArrayISO8859Writer.writeTo()

                    writer.flush();
                    setContentLength(writer.size());
                    try (ServletOutputStream outputStream = getOutputStream())
                    {
                        writer.writeTo(outputStream);
                        writer.destroy();
                    }
                }
            }
        }
View Full Code Here

Examples of org.eclipse.jgit.iplog.IpLogGenerator.writeTo()

      if (!lf.lock())
        throw die(MessageFormat.format(CLIText.get().cannotLock, output));
      try {
        OutputStream os = lf.getOutputStream();
        try {
          log.writeTo(os);
        } finally {
          os.close();
        }
        if (!lf.commit())
          throw die(MessageFormat.format(CLIText.get().cannotWrite, output));
View Full Code Here

Examples of org.eclipse.jgit.util.TemporaryBuffer.writeTo()

        if (buf != out)
          conn.setRequestProperty(HDR_CONTENT_ENCODING, ENCODING_GZIP);
        conn.setFixedLengthStreamingMode((int) buf.length());
        final OutputStream httpOut = conn.getOutputStream();
        try {
          buf.writeTo(httpOut, null);
        } finally {
          httpOut.close();
        }
      }
View Full Code Here

Examples of org.elasticsearch.common.bytes.BytesReference.writeTo()

        log.debug("DLS is enabled and request contains valid xcontent");       
        BytesReference modifiedContent = applyDls((BytesRestResponse)response);       
        int contentLength = modifiedContent.length();
        resp.setContentLength(contentLength);
        final ServletOutputStream out = resp.getOutputStream();
        modifiedContent.writeTo(out);
        out.close();
     
      } else {
        log.debug("DLS is not enabled or response does not contain valid xcontent")
        int contentLength = response.content().length();
View Full Code Here

Examples of org.exoplatform.commons.utils.Text.writeTo()

        }

        //
        if (context.useAjax() && !prcontext.getFullRender()) {
            if (markup != null) {
                markup.writeTo(prcontext.getWriter());
            }
        } else {
            WebuiApplication app = (WebuiApplication) prcontext.getApplication();
            ApplicationResourceResolver resolver = app.getResourceResolver();
            WebuiBindingContext bcontext = new WebuiBindingContext(resolver, context.getWriter(), uicomponent, prcontext);
View Full Code Here

Examples of org.exoplatform.services.web.css.model.StylesheetObject.writeTo()

            //
            if (css1.length() > 0)
            {
               StylesheetObject stylesheet = StylesheetObject.createStylesheet(css1);
               StringWriter writer2 = new StringWriter();
               stylesheet.writeTo(writer2);
               writer2.close();
               String css2 = writer2.toString();

               //
               size1 += css1.length();
View Full Code Here

Examples of org.exoplatform.ws.frameworks.json.value.JsonValue.writeTo()

            {
               jsonValue = generator.createJsonObject(t);
            }
         }
         JsonWriterImpl jsonWriter = new JsonWriterImpl(entityStream);
         jsonValue.writeTo(jsonWriter);
         jsonWriter.flush();
      }
      catch (JsonException e)
      {
         throw new IOException("Can't write to output stream " + e);
View Full Code Here

Examples of org.fusesource.hawtbuf.Buffer.writeTo()

        return unmarshal(dis);
    }

    public void marshal(Object command, DataOutput dataOut) throws IOException {
        Buffer frame = (Buffer) command;
        frame.writeTo(dataOut);
    }

    boolean magicRead = false;
    public Object unmarshal(DataInput dataIn) throws IOException {
        if( !magicRead ) {
View Full Code Here

Examples of org.geoserver.wms.map.RawMap.writeTo()

        assertTrue(map instanceof RawMap);

        RawMap rawMap = (RawMap) map;
        File f = File.createTempFile("temp", ".gpkg", new File("target"));
        FileOutputStream fout = new FileOutputStream(f);
        rawMap.writeTo(fout);
        fout.flush();
        fout.close();
       
        return new GeoPackage(f);
//        File f = File.createTempFile("geopkg", "zip", new File("target"));
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.