Examples of readString()


Examples of org.h2.store.DataReader.readString()

            } else if (x == PageLog.ROLLBACK) {
                int sessionId = in.readVarInt();
                writer.println("-- rollback " + sessionId);
            } else if (x == PageLog.PREPARE_COMMIT) {
                int sessionId = in.readVarInt();
                String transaction = in.readString();
                writer.println("-- prepare commit " + sessionId + " " + transaction);
            } else if (x == PageLog.NOOP) {
                // nothing to do
            } else if (x == PageLog.CHECKPOINT) {
                writer.println("-- checkpoint");
View Full Code Here

Examples of org.hornetq.api.core.HornetQBuffer.readString()

                  }
               }

               HornetQBuffer buffer = HornetQBuffers.wrappedBuffer(data);

               String originatingNodeID = buffer.readString();

               String uniqueID = buffer.readString();

               checkUniqueID(originatingNodeID, uniqueID);
View Full Code Here

Examples of org.hornetq.core.client.impl.LargeMessageBufferImpl.readString()

      dynamic.writeFloat(f1);

      LargeMessageBufferImpl readBuffer = splitBuffer(3, dynamic.toByteBuffer().array());

      Assert.assertEquals(str1, readBuffer.readUTF());
      Assert.assertEquals(str2, readBuffer.readString());
      Assert.assertEquals(d1, readBuffer.readDouble());
      Assert.assertEquals(f1, readBuffer.readFloat());
   }

   private File getTestFile()
View Full Code Here

Examples of org.hornetq.core.client.impl.LargeMessageControllerImpl.readString()

      dynamic.writeFloat(f1);

      LargeMessageControllerImpl readBuffer = splitBuffer(3, dynamic.toByteBuffer().array());

      Assert.assertEquals(str1, readBuffer.readUTF());
      Assert.assertEquals(str2, readBuffer.readString());
      Assert.assertEquals(d1, readBuffer.readDouble());
      Assert.assertEquals(f1, readBuffer.readFloat());
   }

   private File getTestFile()
View Full Code Here

Examples of org.hornetq.jms.client.HornetQStreamMessage.readString()

      HornetQStreamMessage message = new HornetQStreamMessage();

      message.writeBoolean(value);
      message.reset();

      Assert.assertEquals(Boolean.toString(value), message.readString());
   }

   public void testReadStringFromChar() throws Exception
   {
      char value = RandomUtil.randomChar();
View Full Code Here

Examples of org.infinispan.client.hotrod.impl.transport.Transport.readString()

         HotRodOperationsHelper.readHeaderAndValidate(transport, messageId, STATS_RESPONSE, topologyId);
         int nrOfStats = transport.readVInt();

         Map<String, String> result = new HashMap<String, String>();
         for (int i = 0; i < nrOfStats; i++) {
            String statName = transport.readString();
            String statValue = transport.readString();
            result.put(statName, statValue);
         }
         return result;
      } finally {
View Full Code Here

Examples of org.jf.dexlib2.dexbacked.DexReader.readString()

            protected void annotateItem(@Nonnull AnnotatedBytes out, int itemIndex, @Nullable String itemIdentity) {
                DexReader reader = dexFile.readerAt(out.getCursor());
                int utf16Length = reader.readSmallUleb128();
                out.annotateTo(reader.getOffset(), "utf16_size = %d", utf16Length);

                String value = reader.readString(utf16Length);
                out.annotateTo(reader.getOffset() + 1, "data = \"%s\"", StringUtils.escapeString(value));
            }
        };
    }
}
View Full Code Here

Examples of org.lealone.value.Transfer.readString()

                    transfer.writeInt(fetch);
                    sendParameters(transfer);
                    session.done(transfer);

                    if (isDistributedQuery)
                        session.getTransaction().addLocalTransactionNames(transfer.readString());

                    int columnCount = transfer.readInt();
                    int rowCount = transfer.readInt();
                    if (result != null) {
                        result.close();
View Full Code Here

Examples of org.menacheri.jetserver.communication.NettyMessageBuffer.readString()

    Event decoded = decoder.peek();
    assertEquals(decoded.getType(),Events.LOG_IN);
    assertTrue("Timestamps should be same" ,decoded.getTimeStamp() == event.getTimeStamp());
    NettyMessageBuffer decodedPayload = (NettyMessageBuffer)decoded.getSource();
    // NettyMessageBuffer will not get de-serialized properly.
    assertNull(decodedPayload.readString());
  }
}
View Full Code Here

Examples of org.moparscape.msc.gs.connection.Packet.readString()

      }
      String username = "";
      byte[] password = null;

      int lenU = p.readInt();
      username = p.readString(lenU).trim();
      int len = p.readInt();
      password = new Hash(p.readBytes(len)).value();

      if (world.countPlayers() >= Config.MAX_PLAYERS) {
        loginCode = 10;
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.