public DerInputStream subStream ( int len , boolean do_skip ) throws IOException { DerInputBuffer newbuf = buffer . dup ( ) ; newbuf . truncate ( len ) ; if ( do_skip ) { buffer . skip ( len ) ; } return new DerInputStream ( newbuf ) ; }
Creates a new DER input stream from part of this input stream .