Examples of readString()


Examples of org.msgpack.unpacker.BufferUnpacker.readString()

  MessagePack msgpack = new MessagePack();
  BufferPacker packer = msgpack.createBufferPacker();
  packer.writeString(v);
  byte[] bytes = packer.toByteArray();
  BufferUnpacker unpacker = msgpack.createBufferUnpacker(bytes);
  String ret = unpacker.readString();
  assertEquals(v, ret);
    }

    @Test @Override
    public void testByteArray() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Converter.readString()

  MessagePack msgpack = new MessagePack();
        Unconverter packer = new Unconverter(msgpack);
        packer.writeString(v);
        Value r = packer.getResult();
        Converter unpacker = new Converter(msgpack, r);
        String ret = unpacker.readString();
        assertEquals(v, ret);
    }

    @Test @Override
    public void testByteArray() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Unpacker.readString()

  MessagePack msgpack = new JSON();
  BufferPacker packer = msgpack.createBufferPacker();
  packer.writeString(v);
  byte[] bytes = packer.toByteArray();
        Unpacker unpacker = msgpack.createBufferUnpacker(bytes);
  String ret = unpacker.readString();
  assertEquals(v, ret);
    }

    @Test @Override
    public void testByteArray() throws Exception {
View Full Code Here

Examples of org.persvr.util.BufferedDataInput.readString()

  void readNames() throws IOException {
    BufferedDataInput namesInput = new BufferedDataInput(namesFile);
    while (namesInput.getFilePointer() < namesInput.length()) {
      int pointer = (int) namesInput.getFilePointer();
      byte block = namesInput.readByte();
      String propName = namesInput.readString();
      switch (block) {
      case NAMES_HEADER_TABLE_NAME:
      case NAMES_HEADER_SUB_TABLE_NAME:
        tableNameIds.put(propName, pointer);
        internedStrings.put(pointer, propName);
View Full Code Here

Examples of org.red5.io.object.Input.readString()

      input = new org.red5.io.amf3.Input(copy, refStorage);
    }
    //get the first datatype
    byte dataType = input.readDataType();
    if (dataType == DataTypes.CORE_STRING) {
      String setData = input.readString(String.class);
      if ("@setDataFrame".equals(setData)) {
        // get the second datatype
        byte dataType2 = input.readDataType();
        log.debug("Dataframe method type: {}", dataType2);
        String onCueOrOnMeta = input.readString(String.class);
View Full Code Here

Examples of org.voltdb.messaging.FastDeserializer.readString()

                return null;
            }
            message.flip().position(1);//skip version
            FastDeserializer fds = new FastDeserializer(message);
            @SuppressWarnings("unused")
            final String service = fds.readString();
            @SuppressWarnings("unused")
            final String username = fds.readString();
            final byte password[] = new byte[20];
            message.get(password);
View Full Code Here

Examples of pt.opensoft.io.VariableSizeReader.readString()

    private String parseReqCode(String request) throws Exception {

        VariableSizeReader reader = new VariableSizeReader(new StringReader(request));

        return reader.readString(CODE_LENGTH + VERSION_LENGTH);
    }

    private String getRespCodeFromReqCode(String reqCode) {
        // somo mais 100
        int numericPart = Integer.parseInt(reqCode.substring(1,CODE_LENGTH));
View Full Code Here

Examples of research.store.StorableInput.readString()

            int viewNum = indexInput.readInt();

            if (viewNum > 0) {
                viewNameArray = new String[viewNum];
                for (int i = 0; i < viewNum; i++) {
                    viewNameArray[i] = indexInput.readString();
                }
            } else {
                viewNameArray = new String[0];
            }
View Full Code Here

Examples of serp.bytecode.lowlevel.ConstantPoolTable.readString()

            idx += 2;
            int name;
            for (int i = 0; i < attrs; i++) {
                name = table.readUnsignedShort(idx);
                idx += 2;
                if ("RuntimeVisibleAnnotations".equals(table.readString
                    (table.get(name))))
                    return matchAnnotations(table, idx + 4);
                idx += 4 + table.readInt(idx);
            }
        } catch (ArrayIndexOutOfBoundsException e) {
View Full Code Here

Examples of streamer.ByteBuffer.readString()

                break;

            ByteBuffer data = buf.readBytes(length);
            switch (type) {
            case MSV_AV_NETBIOS_DOMAIN_NAME:
                System.out.println("AV Netbios Domain name: " + data.readString(length, RdpConstants.CHARSET_16));
                break;
            case MSV_AV_NETBIOS_COMPUTER_NAME:
                System.out.println("AV Netbios Computer name: " + data.readString(length, RdpConstants.CHARSET_16));
                break;
            case MSV_AV_DNS_DOMAIN_NAME:
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.