Package java.io

Examples of java.io.DataInputStream.readBoolean()


         */
       
        DataInputStream in = new DataInputStream(fis);
        String clusterId = in.readUTF();
        String nodeId = in.readUTF();
        boolean idChanged = in.readBoolean();
        long created = in.readLong();
        long cookieSet = in.readLong();
        long accessed = in.readLong();
        long lastAccessed = in.readLong();
        //boolean invalid = in.readBoolean();
View Full Code Here


    ByteArrayInputStream bais = new ByteArrayInputStream(enc);
    DataInputStream dis = new DataInputStream(bais);
   
    creationTime = dis.readLong();
   
    if (dis.readBoolean()) {
      server = dis.readUTF();
    } else {
      server = null;
    }
   
View Full Code Here

      server = dis.readUTF();
    } else {
      server = null;
    }
   
    if (dis.readBoolean()) {
      exception = dis.readUTF();
    } else {
      exception = null;
    }
  }
View Full Code Here

  }
 
  public boolean decodeBoolean(byte[] a) {
    try {
      DataInputStream dis = new DataInputStream(new ByteArrayInputStream(a));
      return dis.readBoolean();
    } catch (IOException ioe) {
      throw new RuntimeException(ioe);
    }
  }
 
View Full Code Here

                    expression.readFields(input);
                    joinExpressions[i].add(expression);
                }
                int type = WritableUtils.readVInt(input);
                joinTypes[i] = JoinType.values()[type];
                earlyEvaluation[i] = input.readBoolean();
                schemas[i] = new KeyValueSchema();
                schemas[i].readFields(input);
                fieldPositions[i] = WritableUtils.readVInt(input);
            }
            Expression postJoinFilterExpression = null;
View Full Code Here

            // present in Apache Phoenix 3.0.0 release. This allows a newer
            // 3.1 server to work with an older 3.0 client without force
            // both to be upgraded in lock step.
            try {
                limit = WritableUtils.readVInt(input);
                forceProjection = input.readBoolean();
            } catch (EOFException ignore) {
            }
            return new HashJoinInfo(joinedSchema, joinIds, joinExpressions, joinTypes, earlyEvaluation, schemas, fieldPositions, postJoinFilterExpression, limit >= 0 ? limit : null, forceProjection);
        } catch (IOException e) {
            throw new RuntimeException(e);
View Full Code Here

      byte flag = in.readByte();
      if (flag == INFO_SEQ_NUM) {
        if (hasMoreThanSeqNum) {
          flag = in.readByte();
          if (flag == MAJOR_COMPACTION) {
            this.majorCompaction = in.readBoolean();
          }
        }
        return in.readLong();
      }
      throw new IOException("Cannot process log file: " + p);
View Full Code Here

                    case Leader.REVALIDATE:
                        ByteArrayInputStream bis = new ByteArrayInputStream(qp
                                .getData());
                        DataInputStream dis = new DataInputStream(bis);
                        long sessionId = dis.readLong();
                        boolean valid = dis.readBoolean();
                        synchronized (pendingRevalidations) {
                            ServerCnxn cnxn = pendingRevalidations
                                    .remove(sessionId);
                            if (cnxn == null) {
                                LOG.warn("Missing session 0x"
View Full Code Here

        // type
        int type = in.readInt();
        state.setType(type);
        // multiValued
        boolean multiValued = in.readBoolean();
        state.setMultiValued(multiValued);
        // definitionId
        String s = in.readUTF();
        state.setDefinitionId(PropDefId.valueOf(s));
        // modCount
View Full Code Here

        PrintStream os = new PrintStream(bos, true);
        os.print(true);
        DataInputStream dis = new DataInputStream(new ByteArrayInputStream(bos
                .toByteArray()));

        assertTrue("Incorrect boolean written", dis.readBoolean());
    }

    /**
     * @tests java.io.PrintStream#println()
     */
 
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.