/Users/andrea/_magisterarbeit/korpus/clean/testkorpus/32/file21.html NN ----------------------------------------- : All DT Packages NNS Class NN Hierarchy NN This DT Package NN Previous JJ Next NP Index NP Class NP gnu NNS . SENT getopt NN . SENT Getopt NP java NP . SENT lang JJ . SENT Object NN gnu NNS . SENT getopt NN . SENT Getopt JJ public JJ class NN Getopt NN extends VVZ Object NN Here RB is VBZ an DT expanded JJ Getopt JJ example NN using VVG long JJ options NNS and CC various JJ techniques NNS described VVN above IN . SENT int NP c SYM . SENT String NP arg NP . SENT LongOpt JJ longopts NNS new JJ LongOpt NP 3 CD . SENT StringBuffer NP sb NP new JJ StringBuffer NP . SENT longopts NNS 0 CD new JJ LongOpt NP help NN , , LongOpt NP . SENT NO DT ARGUMENT NN , , null NN , , h NN . SENT longopts NNS 1 CD new JJ LongOpt NP outputdir NN , , LongOpt NP . SENT REQUIRED VVN ARGUMENT NN , , sb NN , , o NN . SENT longopts NNS 2 CD new JJ LongOpt NP maximum NN , , LongOpt NP . SENT OPTIONAL JJ ARGUMENT NN , , null JJ , , 2 CD . SENT Getopt JJ g NN new JJ Getopt NP testprog NN , , argv NP , , . SENT bc NN . SENT . SENT d SYM . SENT hW JJ . SENT , , longopts NNS . SENT g NN . SENT setOpterr NP false JJ . SENT We'll NP do VVP our PP$ own JJ error NN handling NN while NN c SYM g NN . SENT getopt NN . SENT 1 CD switch NN c SYM case NN 0 CD . SENT arg NP g NN . SENT getOptarg NP . SENT System NN . SENT out RB . SENT println NNS Got VVD long JJ option NN with IN value NN char NN new JJ Integer NN sb NN . SENT toString NN . SENT intValue NN with IN argument NN arg NN . SENT null NN . SENT arg NP . SENT null NN . SENT break VV . SENT case NN 1 CD . SENT System NN . SENT out RB . SENT println NN I PP see VVP you PP have VHP return NN in IN order NN set NN and CC that IN a DT non JJ option NN argv NN element NN was VBD just RB found VVN with IN the DT value NN g NN . SENT getOptarg NP . SENT break VV . SENT case NN 2 CD . SENT arg NP g NN . SENT getOptarg NP . SENT System NN . SENT out RB . SENT println NN I PP know VVP this DT , , but CC pretend VV I PP didn't JJ . SENT System NN . SENT out RB . SENT println NN We PP picked VVD option NN longopts NNS g NN . SENT getLongind NN . SENT getName NN with IN value NN arg NN . SENT null NN . SENT arg NP . SENT null NN . SENT break VV . SENT case NN b SYM . SENT System NN . SENT out RB . SENT println NN You PP picked VVD plain JJ old JJ option NN char NN c SYM . SENT break VV . SENT case NN c SYM . SENT case NN d SYM . SENT arg NP g NN . SENT getOptarg NP . SENT System NN . SENT out RB . SENT println NN You PP picked VVD option NN char NN c SYM with IN argument NN arg NN . SENT null NN . SENT arg NP . SENT null NN . SENT break VV . SENT case NN h NN . SENT System NN . SENT out RB . SENT println NN I PP see VVP you PP asked VVD for IN help NN . SENT break VV . SENT case NN W NP . SENT System NN . SENT out RB . SENT println NN Hmmm NN . SENT You PP tried VVD a DT W NP with IN an DT incorrect JJ long JJ option NN name NN . SENT break VV . SENT case NN . SENT . SENT System NN . SENT out RB . SENT println NN Doh NN . SENT You PP need VVP an DT argument NN for IN option NN char NN g NN . SENT getOptopt NN . SENT break VV . SENT case NN . SENT . SENT System NN . SENT out RB . SENT println NN The DT option NN char NN g NN . SENT getOptopt NN is VBZ not RB valid JJ . SENT break VV . SENT default NN . SENT System NN . SENT out RB . SENT println NN getopt NN returned VVD c NN . SENT break VV . SENT for IN int NP i NP g NN . SENT getOptind NN . SENT i NP