public BEValue bdecodeList ( ) throws IOException { int c = this . getNextIndicator ( ) ; if ( c != ' ' ) { throw new InvalidBEncodingException ( "Expected 'l', not '" + ( char ) c + "'" ) ; } this . indicator = 0 ; List < BEValue > result = new ArrayList < BEValue > ( ) ; c = this . getNextIndicator ( ) ; while ( c != ' ' ) { result . add ( this . bdecode ( ) ) ; c = this . getNextIndicator ( ) ; } this . indicator = 0 ; return new BEValue ( result ) ; }
Returns the next b - encoded value on the stream and makes sure it is a list .