Examples of writeTo()


Examples of com.basho.riak.pbc.RPB.RpbPutReq.writeTo()

        RpbPutReq req = builder.build();

        int len = req.getSerializedSize();
        dout.writeInt(len + 1);
        dout.write(MSG_PutReq);
        req.writeTo(dout);
      }

      dout.flush();

      try {
View Full Code Here

Examples of com.basho.riak.protobuf.RiakKvPB.RpbPutReq.writeTo()

        RpbPutReq req = builder.build();

        int len = req.getSerializedSize();
        dout.writeInt(len + 1);
        dout.write(MSG_PutReq);
        req.writeTo(dout);
      }

      dout.flush();

      try {
View Full Code Here

Examples of com.bergerkiller.bukkit.common.nbt.CommonTagCompound.writeTo()

        // Write the Last Pos/Rot to the official world file instead
        CommonTagCompound data = read(posFile, human);
        data.putListValues(DATA_TAG_LASTPOS, loc.getX(), loc.getY(), loc.getZ());
        data.putListValues(DATA_TAG_LASTROT, loc.getYaw(), loc.getPitch());
        data.writeTo(posFile);
      }

      // Save data to the destination file
      tagcompound.writeTo(destFile);
View Full Code Here

Examples of com.chenshuo.muduo.protorpc.RpcProto.RpcMessage.writeTo()

        ChannelBuffer buffer = new BigEndianHeapChannelBuffer(4 + size + 4);
        buffer.writeBytes("RPC0".getBytes());
        int writerIndex = buffer.writerIndex();
        CodedOutputStream output = CodedOutputStream.newInstance(
                buffer.array(), buffer.writerIndex(), buffer.writableBytes() - 4);
        message.writeTo(output);
        output.checkNoSpaceLeft();

        buffer.writerIndex(writerIndex + size);
        Adler32 checksum = new Adler32();
        checksum.update(buffer.array(), buffer.arrayOffset(), buffer.readableBytes());
View Full Code Here

Examples of com.cybozu.vmbkp.util.VmdkBitmap.writeTo()

            /* Save the changed bitmap file */
            FilterOutputStream fos =
                new FilterOutputStream
                (new FileOutputStream
                 (profGen.getBmpInPath(diskId)));
            bmp.writeTo(fos);
            fos.close();

            /* Check whether the bitmap is all zero or not.
               (All zero means the vmdk does not change at all.) */
            profGen.setIsChanged(diskId, bmp.isAllZero() == false);
View Full Code Here

Examples of com.eclipsesource.json.JsonObject.writeTo()

                try {
                    JsonObject root = new JsonObject();
                    root.add("identifier", identifier.toJson());
                    TimedMemberState timedMemberState = timedMemberStateFactory.createTimedMemberState();
                    root.add("timedMemberState", timedMemberState.toJson());
                    root.writeTo(writer);
                    writer.flush();
                    outputStream.flush();
                    post(connection);
                    if (manCenterConnectionLost) {
                        logger.info("Connection to management center restored.");
View Full Code Here

Examples of com.esri.gpt.control.georss.AtomFeedWriter.AtomEntry.WriteTo()

    ae.setCustomElements(bCustomXml.toString());
   
    PrintWriter writer = this.getPrintWriter();
    synchronized(writer) {
      try {
        ae.WriteTo(writer);
        writer.flush();
      } catch(Exception e) {
        LOG.log(Level.INFO, "Error while flushing writer", e);
      }
    }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.submit.transports.http.support.attachments.MimeMessageMockResponseEntity.writeTo()

            MimeMessageMockResponseEntity mimeMessageRequestEntity
                    = new MimeMessageMockResponseEntity(message, isXOP, this);

            result.addHeader("Content-Type", mimeMessageRequestEntity.getContentType().getValue());
            result.addHeader("MIME-Version", "1.0");
            mimeMessageRequestEntity.writeTo(outData);
        }

        if (outData.size() > 0) {
            byte[] data = outData.toByteArray();
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStepResult.writeTo()

      buf.append( Arrays.toString( assertion.getErrors() ) + "\n" );

      WsdlTestStepResult result = assertionResults.get( assertion );
      StringWriter stringWriter = new StringWriter();
      PrintWriter writer = new PrintWriter( stringWriter );
      result.writeTo( writer );
      buf.append( stringWriter.toString() );
    }

    while( !failedTests.isEmpty() )
    {
View Full Code Here

Examples of com.fasterxml.jackson.jaxrs.xml.JacksonXMLProvider.writeTo()

        ArrayList<Bean> list = new ArrayList<Bean>();
        list.add(new Bean());
        list.add(new Bean());
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        MediaType mt = MediaType.APPLICATION_JSON_TYPE;
        prov.writeTo(list, List.class, ref.getType(), new Annotation[0], mt, null, out);

        String xml = out.toString("UTF-8");
        /* 09-Oct-2013, tatu: With 2.2, this produced "unwrapped" output; but
         *   with 2.3 it should use same defaults as XML module. So 'wrappers'
         *   are used for Collections, unless explicitly disabled.
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.