Examples of readInt()


Examples of com.firefly.utils.json.io.JsonStringReader.readInt()

    Assert.assertThat(reader.isComma(), is(true));
   
    ret = reader.readField(t1);
    Assert.assertThat(new String(ret), is("testField2"));
    Assert.assertThat(reader.isColon(), is(true));
    Assert.assertThat(reader.readInt(), is(-334));
    reader.close();
  }
 
  @Test
  public void testReadFloat() throws IOException {
View Full Code Here

Examples of com.google.code.or.io.XInputStream.readInt()

    final XInputStream is = this.transport.getInputStream();
    final Context context = new Context(this.binlogFileName);
    while(isRunning()) {
      try {
        // Parse packet
        final int packetLength = is.readInt(3);
        final int packetSequence = is.readInt(1);
        is.setReadLimit(packetLength); // Ensure the packet boundary
       
        //
        final int packetMarker = is.readInt(1);
View Full Code Here

Examples of com.google.code.or.io.util.XDeserializer.readInt()

    r.db = d.readLengthCodedString();
    r.table = d.readLengthCodedString();
    r.orginalTable = d.readLengthCodedString();
    r.column = d.readLengthCodedString();
    r.originalColumn = d.readLengthCodedString();
    r.fixed12 = d.readInt(1);
    r.charset = d.readInt(2);
    r.fieldLength = d.readLong(4);
    r.fieldType = d.readInt(1);
    r.fieldOptions = d.readInt(2);
    r.decimalPrecision = d.readInt(1);
View Full Code Here

Examples of com.google.common.io.ByteArrayDataInput.readInt()

  public List<UUID> getClusterIds() {
    List<UUID> clusterIds = new ArrayList<UUID>();
    byte[] bytes = getAttribute(CONSUMED_CLUSTER_IDS);
    if(bytes != null) {
      ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
      int numClusters = in.readInt();
      for(int i=0; i<numClusters; i++){
        clusterIds.add(new UUID(in.readLong(), in.readLong()));
      }
    }
    return clusterIds;
View Full Code Here

Examples of com.google.common.io.LittleEndianDataInputStream.readInt()

        final LittleEndianDataOutputStream writer = new LittleEndianDataOutputStream(new FileOutputStream("src/test/resources/test_le.txt"));
        writer.writeInt(value);
        writer.close();

        final LittleEndianDataInputStream reader = new LittleEndianDataInputStream(new DataInputStream(new FileInputStream("src/test/resources/test_le.txt")));
        final int result = reader.readInt();
        reader.close();

        assertEquals(value, result);
    }
View Full Code Here

Examples of com.google.gwt.user.client.rpc.SerializationStreamReader.readInt()

    Throwable caught = null;
    while (true) {
      try {
        String serializedForm0 = Utilities.htmlDecode(serializedForm);
        final SerializationStreamReader reader = this.createSerializationStreamReader(serializedForm0);
        final int command = reader.readInt();
        if (command == CometConstants.TERMINATE_COMET_SESSION) {
          this.stop();
          callback.onTerminate();
          break;
        }
View Full Code Here

Examples of com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readInt()

                                + "' in default classloader", e);
            }

            String serviceMethodName = streamReader.readString();

            int paramCount = streamReader.readInt();
            Class<?>[] parameterTypes = new Class[paramCount];

            for (int i = 0; i < parameterTypes.length; i++) {
                String paramClassName = streamReader.readString();
                try {
View Full Code Here

Examples of com.hazelcast.nio.BufferObjectDataInput.readInt()

        try {
            if (data != null && data.length > 0) {
                logApplyReplicaSync(partitionId, replicaIndex);
                byte[] taskData = compressed ? IOUtil.decompress(data) : data;
                in = serializationService.createObjectDataInput(taskData);
                int size = in.readInt();
                for (int i = 0; i < size; i++) {
                    Operation op = (Operation) serializationService.readObject(in);
                    try {
                        ErrorLoggingResponseHandler responseHandler
                                = new ErrorLoggingResponseHandler(nodeEngine.getLogger(op.getClass()));
View Full Code Here

Examples of com.hazelcast.nio.ObjectDataInput.readInt()

    }

    public void read(PortableReader reader) throws IOException {
        super.read(reader);
        final ObjectDataInput in = reader.getRawDataInput();
        final int size = in.readInt();
        valueSet = new HashSet<Data>(size);
        for (int i=0; i<size; i++){
            final Data value = new Data();
            value.readData(in);
            valueSet.add(value);
View Full Code Here

Examples of com.hazelcast.nio.serialization.ObjectDataInputStream.readInt()

        private void processTask() {
            ObjectDataInputStream inputStream = null;
            try {
                //todo: don't we need to close the connection?
                inputStream = openTaskInputStream();
                int taskId = inputStream.readInt();
                if (taskId <= 0) {
                    return;
                }

                ConsoleRequest task = newTask(inputStream);
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.