Examples of writeMessage()


Examples of com.google.i18n.pseudolocalization.format.WritableMessageCatalog.writeMessage()

        OutputStream outputStream) throws IOException {
    // write messages
    WritableMessageCatalog output = msgCat.writeTo(outputStream);
    try {
      for (Message msg : messages) {
        output.writeMessage(msg);
      }
    } finally {
      output.close();
    }
  }
View Full Code Here

Examples of com.google.protobuf.CodedOutputStream.writeMessage()

      if (data != null)
        writeByteBuffer(out, 1, data);
      if (index != null)
        writeByteBuffer(out, 2, index);
      if (meta != null)
        out.writeMessage(3, meta);
    } catch (IOException err) {
      throw new RuntimeException("Cannot buffer chunk", err);
    }
    return r;
  }
View Full Code Here

Examples of com.reignite.codec.MessageSerializer.writeMessage()

    }

    AMFMessage response = context.getResponseMessage();
    MessageSerializer serializer = context.locateSerializer();
    try {
      serializer.writeMessage(response);
    } catch (Exception e) {
      LogWriter.error(getClass(), "Failed to serialize response: " + e, e);

      AMFMessageBody errorBody = new AMFMessageBody();
      ErrorMessage errorMessage = new ErrorMessage("Failed to serialize message: " + e, "", "", null);
View Full Code Here

Examples of com.trendmicro.mist.client.MistClient.writeMessage()

                                if(key.equals("MIST_TTL"))
                                    msgBuilder.setTtl(Long.valueOf(value));
                                else
                                    msgBuilder.addProperties(KeyValuePair.newBuilder().setKey(key).setValue(value).build());
                            }
                            sinkClient.writeMessage(msgBuilder.build());
                            totalForwardedCount++;
                        }
                    }
                    catch(Exception e) {
                        e.printStackTrace();
View Full Code Here

Examples of de.fhkn.in.uce.stun.message.MessageWriter.writeMessage()

                    s.connect(relayServerEndpoint);
                    MessageWriter dataConnectionWriter = new MessageWriter(s.getOutputStream());
                    Message connectionBindRequestMessage = MessageStaticFactory.newSTUNMessageInstance(
                            STUNMessageClass.REQUEST, RelayingMethod.CONNECTION_BIND);
                    connectionBindRequestMessage.addAttribute(new Token(message.getAttribute(Token.class).getToken()));
                    dataConnectionWriter.writeMessage(connectionBindRequestMessage);
                    // TODO erfolgs oder fehlermeldung abwarten
                    socketQueue.add(s);
                } else if (message.isMethod(STUNMessageMethod.KEEP_ALIVE) && message.isSuccessResponse()) {
                    int lifetime = message.getAttribute(RelayingLifetime.class).getLifeTime();
                    logger.debug("Received lifetime response {}", lifetime);
View Full Code Here

Examples of de.grey.ownsync.facade.OwnSyncResult.writeMessage()

            long start = System.currentTimeMillis();
            OwnSyncStatus.setMessage("Calculating actions");
            FolderSynchronizer synchronizer = new FolderSynchronizer(folderStateA, folderStateB);
            synchronizer.evaluateActions(result);
            result.writeMessage(OwnSyncResult.EVALUATED);
            OwnSyncStatus.setMessage("Calculating actions");
            OwnSyncStatus.appendToMessage(" took " + DataFormatter.getTimeString(System.currentTimeMillis() - start));

            OwnSyncStatus.setMessage("");
            OwnSyncStatus.setMessage("");
View Full Code Here

Examples of de.grey.ownsync.facade.OwnSyncResult.writeMessage()

            OwnSyncStatus.setMessage("");
           
            if (configuration.useTestModus)
            {
                OwnSyncStatus.setMessage("TestModus activated, no files or folders will be modified.");
                result.writeMessage(OwnSyncResult.EVALUATED);
               
                System.out.println("TestModus activated, no files or folders will be modified.");
                result.printlnMessage(OwnSyncResult.EVALUATED);
               
                FileUtils.calculateMinimumLastModifiedDelta(configuration.getFolderAConfiguration(), configuration.getFolderBConfiguration());
View Full Code Here

Examples of de.grey.ownsync.facade.OwnSyncResult.writeMessage()

            {
                synchronizer.executeActions(result);
               
                if (!configuration.useTestModus && result.isAnyActionFailed())
                {
                    result.writeMessage(OwnSyncResult.FAILED);
                    result.printlnMessage(OwnSyncResult.FAILED);
                    OwnSyncStatus.setMessage("");
                }
                if (!configuration.useTestModus && !result.isNoActionAvailabe())
                {
View Full Code Here

Examples of de.grey.ownsync.facade.OwnSyncResult.writeMessage()

                    result.printlnMessage(OwnSyncResult.FAILED);
                    OwnSyncStatus.setMessage("");
                }
                if (!configuration.useTestModus && !result.isNoActionAvailabe())
                {
                    result.writeMessage(OwnSyncResult.EXECUTED);
                    result.printlnMessage(OwnSyncResult.EXECUTED);
                }
            }
           
            OwnSyncStatus.setMessage("");
View Full Code Here

Examples of etch.bindings.java.transport.TaggedDataOutput.writeMessage()

   */
  public static String getXml( Message msg, ValueFactory vf ) throws IOException
  {
    StringWriter sw = new StringWriter();
    TaggedDataOutput tdo = new XmlTaggedDataOutput( sw, vf );
    tdo.writeMessage( msg, null );
    return sw.toString();
  }

  public void setBuffer( FlexBuffer msgBuf )
  {
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.