Examples of encode()


Examples of net.hasor.rsf.serialize.coder.Hessian_DecoderEncoder.encode()

        request.setServiceVersion("1.0.0");
        request.setServiceGroup("default");
        request.setTargetMethod("sayHello");//String item, int index
        request.setSerializeType("Hessian");
        //
        request.addParameter("java.lang.String", de.encode("你好..."));
        //
        request.addOption("sync", "true");
        //
        return request;
    }

Examples of net.oauth.j2me.OAuthParameterEncoder.encode()

        this.key = key;
    }

    public String getSignature() {
        OAuthParameterEncoder encoder = new OAuthParameterEncoder();
        signature = encoder.encode(encoder.encode(message)
            + "&" + encoder.encode(key));
        return signature;
    }
}

Examples of net.rubyeye.xmemcached.command.Command.encode()

  byte[] keyBytes = ByteUtils.getBytes(this.key);

  public void testEncodeDecode() {
    Command command = this.commandFactory.createTouchCommand(key, keyBytes,
        null, 10, false);
    command.encode();
    ByteBuffer encodeBuffer = command.getIoBuffer().buf();
    assertNotNull(encodeBuffer);
    assertEquals(24 + 4 + 5, encodeBuffer.capacity());

    byte opCode = encodeBuffer.get(1);

Examples of net.rubyeye.xmemcached.command.binary.BinaryGetCommand.encode()

      if (it.hasNext()) {
        // first n-1 send getq command
        Command command = new BinaryGetCommand(key, ByteUtils
            .getBytes(key), cmdType, null, OpCode.GET_KEY_QUIETLY,
            true);
        command.encode();
        totalLength += command.getIoBuffer().remaining();
        bufferList.add(command.getIoBuffer());
      }
    }
    // last key,create a get command

Examples of net.rubyeye.xmemcached.command.binary.BinaryStoreCommand.encode()

            this.prevCommand.getValue(), true,
            this.prevCommand.getTranscoder());
        // We must set the opaque to get error message.
        int opaque = OpaqueGenerater.getInstance().getNextValue();
        setqCmd.setOpaque(opaque);
        setqCmd.encode();
        this.totalBytes += setqCmd.getIoBuffer().remaining();


        this.bufferList.add(setqCmd.getIoBuffer());
        // GC friendly

Examples of net.rubyeye.xmemcached.command.text.TextGetOneCommand.encode()

  public void testMergeFactorEqualsZero() {
    this.optimiezer.setMergeFactor(0);
    TextGetOneCommand optimiezeCommand = (TextGetOneCommand) this.optimiezer
        .optimiezeGet(this.writeQueue, this.executingCmds,
            this.currentCmd);
    optimiezeCommand.encode();

    assertNull(optimiezeCommand.getMergeCommands());
    assertSame(CommandType.GET_ONE, optimiezeCommand.getCommandType());
    assertNull(optimiezeCommand.getMergeCommands());
    assertEquals(-1, optimiezeCommand.getMergeCount());

Examples of net.sf.cindy.PacketEncoder.encode()

    }

    public Packet encode(Session session, Object obj) throws Exception {
        for (Iterator iter = chain.iterator(); iter.hasNext();) {
            PacketEncoder encoder = (PacketEncoder) iter.next();
            Packet packet = encoder.encode(session, obj);
            if (packet != null)
                return packet;
        }
        return null;
    }

Examples of net.sf.hajdbc.codec.Codec.encode()

   
    try
    {
      Codec codec = new HexCodecFactory().createCodec(clusterId);

      System.out.println(codec.encode(value));
    }
    catch (SQLException e)
    {
      e.printStackTrace(System.err);
    }

Examples of net.sf.isolation.text.IsoTextEncoder.encode()

  @Test
  public void textEncode() throws Exception {
    IsoTextEncoder encoder = new IsoTextEncoderCsvSpi(context());
    Writer w = new BufferedWriter(new FileWriter(file));
    try {
      encoder.encode(w, data);
    } finally {
      w.flush();
      w.close();
    }
  }

Examples of net.sf.isolation.text.spi.IsoTextEncoderCsvSpi.encode()

  @Test
  public void textEncode() throws Exception {
    IsoTextEncoder encoder = new IsoTextEncoderCsvSpi(context());
    Writer w = new BufferedWriter(new FileWriter(file));
    try {
      encoder.encode(w, data);
    } finally {
      w.flush();
      w.close();
    }
  }
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.