Examples of writeString()


Examples of com.fasterxml.jackson.core.JsonGenerator.writeString()

      @Override
      public void visit(MetricTreeString o) {
        try {
          writeKey(o);
          jsonGenerator.writeString(o.getValue());
        } catch (IOException e) {
          throw new IllegalStateException("Error serializing to JSON", e);
        }
      }
View Full Code Here

Examples of com.fasterxml.jackson.databind.util.TokenBuffer.writeString()

        /* Ok: time to mix type id, value; and we will actually use "wrapper-array"
         * style to ensure we can handle all kinds of JSON constructs.
         */
        TokenBuffer merged = new TokenBuffer(jp.getCodec());
        merged.writeStartArray();
        merged.writeString(_typeIds[index]);
        JsonParser p2 = _tokens[index].asParser(jp);
        p2.nextToken();
        merged.copyCurrentStructure(p2);
        merged.writeEndArray();
        // needs to point to START_OBJECT (or whatever first token is)
View Full Code Here

Examples of com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.writeString()

        ToXmlGenerator gen = f.createGenerator(out);
        // root name is special, need to be fed first:
        gen.setNextName(new QName("root"));
        gen.writeStartObject();
        gen.writeFieldName("elem");
        gen.writeString("value");
        gen.writeEndObject();
        gen.close();
        String xml = out.toString();
        // one more thing: remove that annoying 'xmlns' decl, if it's there:
        xml = removeSjsxpNamespace(xml);
View Full Code Here

Examples of com.google.gwt.user.client.rpc.SerializationStreamWriter.writeString()

                SerializationStreamWriter objectWriter = getSerializationStreamFactory()
                        .createStreamWriter();

                // Serialize the object
                if (this.object instanceof String) {
                    objectWriter.writeString((String) this.object);
                } else {
                    objectWriter.writeObject(this.object);
                }

                setText(objectWriter.toString());
View Full Code Here

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

      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      CodedOutputStream out = CodedOutputStream.newInstance(baos);

      if (t instanceof String) {
         out.writeString(wrappedInt64, (String) t);
      } else if (t instanceof Long) {
         out.writeInt64(wrappedInt64, (Long) t);
      } else if (t instanceof Integer) {
         out.writeInt32(wrappedInt32, (Integer) t);
      } else if (t instanceof Double) {
View Full Code Here

Examples of com.ibm.mq.MQMessage.writeString()

                break;
            case BridgeMsg.TYPE_TEXT:
                /* text message */
                mqMsg.format = MQC.MQFMT_STRING;
                mqMsg.characterSet = 1208; /* UTF-8 */
                mqMsg.writeString(msg.getTextData());
                break;
            default:
                /* FIXME will cause message loops */
                throw new BridgeException("Message type " + msg.getMsgType() + " is not supported");
            }
View Full Code Here

Examples of com.impossibl.postgres.api.jdbc.PGSQLOutput.writeString()

    }

    @Override
    public void writeSQL(SQLOutput stream) throws SQLException {
      PGSQLOutput out = (PGSQLOutput) stream;
      out.writeString(str);
      out.writeString(str2);
      out.writeObject(id);
      out.writeDouble(num);
    }
View Full Code Here

Examples of com.maverick.util.ByteArrayWriter.writeString()

    launchId = "";
  }
 
  public byte[] create() throws IOException {
    ByteArrayWriter msg = new ByteArrayWriter();
    msg.writeString(hostname);
    msg.writeInt(port);
    msg.writeString(launchId);
    return msg.toByteArray();
  }
View Full Code Here

Examples of com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.writeString()

      try {

        try {
          network = beginRequest(OChannelBinaryProtocol.REQUEST_RECORD_LOAD);
          network.writeRID(iRid);
          network.writeString(iFetchPlan != null ? iFetchPlan : "");
          if (network.getSrvProtocolVersion() >= 9)
            network.writeByte((byte) (iIgnoreCache ? 1 : 0));

          if (network.getSrvProtocolVersion() >= 13)
            network.writeByte(loadTombstones ? (byte) 1 : (byte) 0);
View Full Code Here

Examples of com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryClient.writeString()

    storage.createConnectionPool();

    try {
      final OChannelBinaryClient network = storage.beginRequest(OChannelBinaryProtocol.REQUEST_CONNECT);
      try {
        network.writeString(iUserName);
        network.writeString(iUserPassword);
      } finally {
        storage.endRequest(network);
      }
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.