Examples of readString()


Examples of com.badlogic.gdx.utils.DataInput.readString()

    DataInput input = new DataInput(file.read(512));
    try {
      // Bones.
      for (int i = 0, n = input.readInt(true); i < n; i++) {
        String name = input.readString();
        BoneData parent = null;
        String parentName = input.readString();
        if (parentName != null) {
          parent = skeletonData.findBone(parentName);
          if (parent == null) throw new SerializationException("Parent bone not found: " + parentName);
View Full Code Here

Examples of com.caucho.hessian.io.Hessian2Input.readString()

  public static String getDeviceVersion(String partName){
    String fileName = getDeviceFileName(partName);
    String version;
    try{
      Hessian2Input his = FileTools.getInputStream(fileName);
      version = his.readString();
      his.close();
    }
    catch (FileNotFoundException e){
      return null;
    }
View Full Code Here

Examples of com.cxy.redisclient.service.NodeService.readString()

  public void testAddKey() throws IOException {
    NodeService service2 = new NodeService();
    service2.addString(1, 0, "key", "value", -1);
   
    String value = service2.readString(1, 0, "key");
    assertEquals(value, "value");
  }

  public void testDeleteKey() throws IOException {
    NodeService service2 = new NodeService();
View Full Code Here

Examples of com.davfx.ninio.ssh.SshPacket.readString()

    try (BufferedReader r = new BufferedReader(new InputStreamReader(new FileInputStream(file), Charsets.UTF_8))) {
      List<String> l = Splitter.on(' ').splitToList(r.readLine());
      String publicKeyAlgorithm = l.get(0);
      byte[] b = BaseEncoding.base64().decode(l.get(1));
      SshPacket k = new SshPacket(ByteBuffer.wrap(b));
      String s = k.readString();
      if (!s.equals(publicKeyAlgorithm)) {
        throw new IOException("Invalid algorithm: " + s);
      }
      if (publicKeyAlgorithm.equals("ssh-rsa")) {
        byte[] e = k.readBlob();
View Full Code Here

Examples of com.esotericsoftware.kryo.io.Input.readString()

    Output write = new Output(21);
    String value = "abcdef\u00E1\u00E9\u00ED\u00F3\u00FA\u1234";
    write.writeString(value);
    Input read = new Input(write.toBytes());
    assertEquals(value, read.readString());

    runStringTest(127);
    runStringTest(256);
    runStringTest(1024 * 1023);
    runStringTest(1024 * 1024);
 
View Full Code Here

Examples of com.esotericsoftware.kryo.io.UnsafeInput.readString()

    UnsafeOutput write = new UnsafeOutput(21);
    String value = "abcdef\u00E1\u00E9\u00ED\u00F3\u00FA\u1234";
    write.writeString(value);
    Input read = new UnsafeInput(write.toBytes());
    assertEquals(value, read.readString());

    runStringTest(127);
    runStringTest(256);
    runStringTest(1024 * 1023);
    runStringTest(1024 * 1024);
 
View Full Code Here

Examples of com.esotericsoftware.kryo.io.UnsafeMemoryInput.readString()

    assertEquals("tres", read.readString());
    assertEquals(null, read.readString());
    assertEquals(value1, read.readString());
    assertEquals(value2, read.readString());
    for (int i = 0; i < 127; i++)
      assertEquals(String.valueOf((char)i), read.readString());
    for (int i = 0; i < 127; i++)
      assertEquals(String.valueOf((char)i) + "abc", read.readString());

    read.rewind();
    assertEquals("", read.readStringBuilder().toString());
View Full Code Here

Examples of com.eviware.soapui.support.xml.XmlObjectConfigurationReader.readString()

    builder.add( "testString", "1234" );

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( builder.finish() );
    assertEquals( ( float )0.123, reader.readFloat( "testFloat", 0 ) );
    assertEquals( 123, reader.readInt( "testInt", 0 ) );
    assertEquals( "1234", reader.readString( "testString", null ) );
  }
}
View Full Code Here

Examples of com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TTupleProtocol.readString()

      if (incoming.get(0)) {
        struct.field1 = iprot.readI32();
        struct.setField1IsSet(true);
      }
      if (incoming.get(1)) {
        struct.field2 = iprot.readString();
        struct.setField2IsSet(true);
      }
      if (incoming.get(2)) {
        {
          com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TList _list5 = new com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TList(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
View Full Code Here

Examples of com.facebook.thrift.protocol.TProtocol.readString()

  public static void testNakedString(String str) throws Exception {
    TMemoryBuffer buf = new TMemoryBuffer(0);
    TProtocol proto = factory.getProtocol(buf);
    proto.writeString(str);
    // System.out.println(buf.inspect());
    String out = proto.readString();
    if (!str.equals(out)) {
      throw new RuntimeException("String was supposed to be '" + str + "' but was '" + out + "'");
    }
  }
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.