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 ; }
Reads an array . The tokeniser must be positioned past the [ token .