code: public PdfArray readArray() throws IOException {
          PdfArray array = new PdfArray();
          while (true) {
              PdfObject obj = readPRObject();
              int type = obj.type();
              if (-type == PRTokeniser.TK_END_ARRAY)
                  break;
              if (-type == PRTokeniser.TK_END_DIC)
                  throw new IOException("Unexpected '>>'");
              array.add(obj);
          }
          return array;
      }
docs: Reads an array. The tokeniser must be positioned past the "[" token.
  @return an array
  @throws IOException on error