public void encode ( DerOutputStream out ) throws IOException { DerOutputStream seq = new DerOutputStream ( ) ; name . encode ( seq ) ; if ( minimum != MIN_DEFAULT ) { DerOutputStream tmp = new DerOutputStream ( ) ; tmp . putInteger ( minimum ) ; seq . writeImplicit ( DerValue . createTag ( DerValue . TAG_CONTEXT , false , TAG_MIN ) , tmp ) ; } if ( maximum != - 1 ) { DerOutputStream tmp = new DerOutputStream ( ) ; tmp . putInteger ( maximum ) ; seq . writeImplicit ( DerValue . createTag ( DerValue . TAG_CONTEXT , false , TAG_MAX ) , tmp ) ; } out . write ( DerValue . tag_Sequence , seq ) ; }
Encode the GeneralSubtree .