Examples of writeTo()


Examples of org.vfny.geoserver.Response.writeTo()

        throws IOException, ServiceException {
        //get the delegate
        Response delegate = (Response) value;

        //write the response
        delegate.writeTo(output);
    }
   
    public String[][] getHeaders(Object value, Operation operation) throws ServiceException {
        Response delegate = (Response) value;
        HashMap map = new HashMap();
View Full Code Here

Examples of org.vfny.geoserver.wms.responses.GetMapResponse.writeTo()

                "attachment; filename=" + filename.toString() + formatExtension);

        if ("download".equals(mode)){
            GetMapResponse wmsResponse = wms.getMap(request);
            wmsResponse.execute(request);
            wmsResponse.writeTo(response.getOutputStream());
        } else {
            KMLNetworkLinkTransformer transformer = new KMLNetworkLinkTransformer();
            transformer.setIndentation(3);
            Charset encoding = request.getWMS().getCharSet();
            transformer.setEncoding(encoding);
View Full Code Here

Examples of org.waveprotocol.box.server.persistence.protos.ProtoDeltaStoreData.ProtoTransformedWaveletDelta.writeTo()

   */
  private int writeTransformedWaveletDelta(TransformedWaveletDelta delta) throws IOException {
    long startingPosition = file.getFilePointer();
    ProtoTransformedWaveletDelta protoDelta = ProtoDeltaStoreDataSerializer.serialize(delta);
    OutputStream stream = Channels.newOutputStream(file.getChannel());
    protoDelta.writeTo(stream);
    return (int) (file.getFilePointer() - startingPosition);
  }

  /**
   * Read a delta to the file. Does not move the file pointer before writing. Returns number of
View Full Code Here

Examples of org.wymiwyg.wrhapi.MessageBody.writeTo()

                //write the body as subject
                AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() {

                  @Override
                  public Subject run() throws IOException {
                    body.writeTo(out);
                    return null;
                  }
                });
              } catch (PrivilegedActionException privEx) {
                Throwable cause = privEx.getCause();
View Full Code Here

Examples of protobuf_unittest.UnittestProto.TestAllTypes.writeTo()

    // Try different block sizes.
    for (int blockSize = 1; blockSize < 256; blockSize *= 2) {
      ByteArrayOutputStream rawOutput = new ByteArrayOutputStream();
      CodedOutputStream output =
        CodedOutputStream.newInstance(rawOutput, blockSize);
      message.writeTo(output);
      output.flush();
      assertEqualBytes(rawBytes, rawOutput.toByteArray());
    }
  }

View Full Code Here

Examples of protobuf_unittest.UnittestProto.TestPackedTypes.writeTo()

    // Directly construct a CodedOutputStream around the actual OutputStream,
    // in case writeTo(OutputStream output) invokes getSerializedSize();
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    CodedOutputStream codedOutput = CodedOutputStream.newInstance(outputStream);

    message.writeTo(codedOutput);

    codedOutput.flush();

    TestPackedTypes message2 = TestPackedTypes.parseFrom(
        outputStream.toByteArray());
View Full Code Here

Examples of railo.runtime.cache.legacy.CacheItem.writeTo()

        if(ci.isValid(timespan)){ //if(isOK(cacheResource)){
          if(pageContext. getHttpServletResponse().isCommitted()) return;
         
          OutputStream os=null;
          try {
                ci.writeTo(os=getOutputStream(),ReqRspUtil.getCharacterEncoding(pageContext,rsp));
            //IOUtil.copy(is=cacheResource.getInputStream(),os=getOutputStream(),false,false);
            }
            finally {
                IOUtil.flushEL(os);
                IOUtil.closeEL(os);
View Full Code Here

Examples of test.protos.MemberProtos.MemberBook.writeTo()

        File filePath = new File(args[0]);
        int memberCount = Integer.parseInt(args[1]);
       
        MemberBook memberBook = MemberDataGen.generateMemberBook(memberCount);
        FileOutputStream output = new FileOutputStream(filePath);
        memberBook.writeTo(output);
        output.close();
       
        System.out.println("Done");
    }
}
View Full Code Here

Examples of vavi.sound.smaf.message.TrackMessage.writeTo()

        dos.writeInt(smafDataLength);

        // 3. tracks
        for (int t = 0; t < tracks.length; t++) {
            TrackMessage track = new TrackMessage(t, tracks[t]);
            track.writeTo(out);
        }

        out.flush(); // TODO ����H
    }
View Full Code Here

Examples of xbird.xquery.dm.instance.DocumentTableModel.DTMNodeBase.writeTo()

        try {
            final DataModel dm = node.getDataModel();
            if(doRemotePaging && dm.isMemoryMappedStore()) {
                output.writeByte(EV_DTM_NODE);
                DTMNodeBase dtmNode = (DTMNodeBase) node;
                dtmNode.writeTo(output, _serContext);
            } else {
                output.writeByte(EV_NODE_START);
                dm.export(node, this);
                output.writeByte(EV_NODE_END);
            }
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.