Examples of writeString()


Examples of com.sleepycat.bdb.bind.tuple.TupleOutput.writeString()

        DataBinding binding = new TupleInputBinding(format);
        assertSame(format, binding.getDataFormat());

        TupleOutput out = new TupleOutput();
        out.writeString("abc");
        binding.objectToData(new TupleInput(out), buffer);
        assertEquals(4, buffer.getDataLength());

        Object result = binding.dataToObject(buffer);
        assertTrue(result instanceof TupleInput);
View Full Code Here

Examples of com.sleepycat.bind.tuple.TupleOutput.writeString()

   {
      /* Write the sequence of name parts. */
      TupleOutput tupleOutput = new TupleOutput();
      for (int i = 0; i < nParts; i += 1)
      {
         tupleOutput.writeString(name.get(i).toString());
      }

      /* Return the tuple as an entry. */
      DatabaseEntry entry = new DatabaseEntry();
      TupleBinding.outputToEntry(tupleOutput, entry);
View Full Code Here

Examples of com.sshtools.j2ssh.io.ByteArrayWriter.writeString()

     * @return
     */
    public byte[] getChannelOpenData() {
        try {
            ByteArrayWriter baw = new ByteArrayWriter();
            baw.writeString(hostToConnectOrBind);
            baw.writeInt(portToConnectOrBind);
            baw.writeString(originatingHost);
            baw.writeInt(originatingPort);

            return baw.toByteArray();
View Full Code Here

Examples of com.trilead.ssh2.packets.TypesWriter.writeString()

        TypesWriter tw = new TypesWriter();
        {
          byte[] H = tm.getSessionIdentifier();

          tw.writeString(H, 0, H.length);
          tw.writeByte(Packets.SSH_MSG_USERAUTH_REQUEST);
          tw.writeString(user);
          tw.writeString("ssh-connection");
          tw.writeString("publickey");
          tw.writeBoolean(true);
View Full Code Here

Examples of com.trulytech.mantis.util.ExcelWriter.writeString()

                UnderlineStyle.NO_UNDERLINE,
                jxl.format.Colour.BLACK);
      writer.writeStyleString(0, 0, 0, "会员信息表", font,
                jxl.format.Alignment.CENTRE);
      //表头
      writer.writeString(0, 0, 1, "登陆名");
      writer.writeString(0, 1, 1, "密码");
      writer.writeString(0, 2, 1, "真实姓名");
      writer.writeString(0, 3, 1, "性别");
      writer.writeString(0, 4, 1, "电话");
      writer.writeString(0, 5, 1, "手机");
View Full Code Here

Examples of davaguine.jmac.tools.ByteArrayWriter.writeString()

        return header;
    }

    public final byte[] write() {
        final ByteArrayWriter writer = new ByteArrayWriter(WAVE_HEADER_BYTES);
        writer.writeString(cRIFFHeader, 4, "US-ASCII");
        writer.writeUnsignedInt(nRIFFBytes);
        writer.writeString(cDataTypeID, 4, "US-ASCII");
        writer.writeString(cFormatHeader, 4, "US-ASCII");
        writer.writeUnsignedInt(nFormatBytes);
        writer.writeUnsignedShort(nFormatTag);
View Full Code Here

Examples of gnu.javax.crypto.key.OutgoingMessage.writeString()

        try
          {
            serverKA.init(serverAttributes);
            out = new OutgoingMessage();
            out.writeString(remoteUser);
            in = new IncomingMessage(out.toByteArray());
            out = serverKA.processMessage(in);
          }
        catch (KeyAgreementException x)
          {
View Full Code Here

Examples of hprose.io.HproseWriter.writeString()

    private void doOutput(String functionName, Object[] arguments, boolean byRef, OutputStream ostream) throws IOException {
        if (filter != null) ostream = filter.outputFilter(ostream);
        HproseWriter hproseWriter = new HproseWriter(ostream);
        ostream.write(HproseTags.TagCall);
        hproseWriter.writeString(functionName, false);
        if ((arguments != null) && (arguments.length > 0 || byRef)) {
            hproseWriter.reset();
            hproseWriter.writeArray(arguments, false);
            if (byRef) {
                hproseWriter.writeBoolean(true);
View Full Code Here

Examples of htsjdk.tribble.util.LittleEndianOutputStream.writeString()

            // Placeholder for index position
            peakWriter.writeLong(0l);

            // Track line
            peakWriter.writeString("track name=" + factor + " sample=" + factor + " viewLimits=0:100 useScore=1 color=" + c);

            // Time values
            int nTimePoints = times.size();
            peakWriter.writeInt(nTimePoints);
            for (int i = 0; i < times.size(); i++) {
View Full Code Here

Examples of java.nio.ByteBuffer.writeString()

                SshPacketBuilder b = new SshPacketBuilder().writeByte(SshUtils.SSH_MSG_KEXINIT);
                for (int i = 0; i < clientCookie.length; i++) {
                  b.writeByte(clientCookie[i]);
                }
                for (String s : clientExchange) {
                  b.writeString(s);
                }
                b.writeByte(0);
                b.writeInt(0);
                write.handle(null, b.finish());
              }
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.