code: public boolean readBoolean()
          throws IOException
      {
          int tag = read();
  
          switch (tag) {
              case 'T':
                  return true;
              case 'F':
                  return false;
              case 'I':
                  return parseInt() == 0;
              case 'L':
                  return parseLong() == 0;
              case 'D':
                  return parseDouble() == 0.0;
              case 'N':
                  return false;
  
              default:
                  throw expect("boolean", tag);
          }
      }
docs: Reads a boolean
  
  <pre>
  T
  F
  </pre>