Network programming assignment for University
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BasicParser.html 18 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="de">
  4. <head>
  5. <!-- Generated by javadoc -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  7. <title>BasicParser (Apache Commons CLI 1.4 API)</title>
  8. <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="BasicParser (Apache Commons CLI 1.4 API)";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":42};
  22. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../../../../org/apache/commons/cli/package-summary.html">Package</a></li>
  41. <li class="navBarCell1Rev">Class</li>
  42. <li><a href="class-use/BasicParser.html">Use</a></li>
  43. <li><a href="package-tree.html">Tree</a></li>
  44. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  45. <li><a href="../../../../index-all.html">Index</a></li>
  46. <li><a href="../../../../help-doc.html">Help</a></li>
  47. </ul>
  48. </div>
  49. <div class="subNav">
  50. <ul class="navList">
  51. <li><a href="../../../../org/apache/commons/cli/AmbiguousOptionException.html" title="class in org.apache.commons.cli"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  52. <li><a href="../../../../org/apache/commons/cli/CommandLine.html" title="class in org.apache.commons.cli"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  53. </ul>
  54. <ul class="navList">
  55. <li><a href="../../../../index.html?org/apache/commons/cli/BasicParser.html" target="_top">Frames</a></li>
  56. <li><a href="BasicParser.html" target="_top">No&nbsp;Frames</a></li>
  57. </ul>
  58. <ul class="navList" id="allclasses_navbar_top">
  59. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  60. </ul>
  61. <div>
  62. <script type="text/javascript"><!--
  63. allClassesLink = document.getElementById("allclasses_navbar_top");
  64. if(window==top) {
  65. allClassesLink.style.display = "block";
  66. }
  67. else {
  68. allClassesLink.style.display = "none";
  69. }
  70. //-->
  71. </script>
  72. </div>
  73. <div>
  74. <ul class="subNavList">
  75. <li>Summary:&nbsp;</li>
  76. <li>Nested&nbsp;|&nbsp;</li>
  77. <li><a href="#fields.inherited.from.class.org.apache.commons.cli.Parser">Field</a>&nbsp;|&nbsp;</li>
  78. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  79. <li><a href="#method.summary">Method</a></li>
  80. </ul>
  81. <ul class="subNavList">
  82. <li>Detail:&nbsp;</li>
  83. <li>Field&nbsp;|&nbsp;</li>
  84. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  85. <li><a href="#method.detail">Method</a></li>
  86. </ul>
  87. </div>
  88. <a name="skip.navbar.top">
  89. <!-- -->
  90. </a></div>
  91. <!-- ========= END OF TOP NAVBAR ========= -->
  92. <!-- ======== START OF CLASS DATA ======== -->
  93. <div class="header">
  94. <div class="subTitle">org.apache.commons.cli</div>
  95. <h2 title="Class BasicParser" class="title">Class BasicParser</h2>
  96. </div>
  97. <div class="contentContainer">
  98. <ul class="inheritance">
  99. <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
  100. <li>
  101. <ul class="inheritance">
  102. <li><a href="../../../../org/apache/commons/cli/Parser.html" title="class in org.apache.commons.cli">org.apache.commons.cli.Parser</a></li>
  103. <li>
  104. <ul class="inheritance">
  105. <li>org.apache.commons.cli.BasicParser</li>
  106. </ul>
  107. </li>
  108. </ul>
  109. </li>
  110. </ul>
  111. <div class="description">
  112. <ul class="blockList">
  113. <li class="blockList">
  114. <dl>
  115. <dt>All Implemented Interfaces:</dt>
  116. <dd><a href="../../../../org/apache/commons/cli/CommandLineParser.html" title="interface in org.apache.commons.cli">CommandLineParser</a></dd>
  117. </dl>
  118. <hr>
  119. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
  120. <div class="block"><span class="deprecationComment">since 1.3, use the <a href="../../../../org/apache/commons/cli/DefaultParser.html" title="class in org.apache.commons.cli"><code>DefaultParser</code></a> instead</span></div>
  121. </div>
  122. <br>
  123. <pre><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
  124. public class <span class="typeNameLabel">BasicParser</span>
  125. extends <a href="../../../../org/apache/commons/cli/Parser.html" title="class in org.apache.commons.cli">Parser</a></pre>
  126. <div class="block">The class BasicParser provides a very simple implementation of
  127. the <a href="../../../../org/apache/commons/cli/Parser.html#flatten-org.apache.commons.cli.Options-java.lang.String:A-boolean-"><code>flatten</code></a> method.</div>
  128. <dl>
  129. <dt><span class="simpleTagLabel">Version:</span></dt>
  130. <dd>$Id: BasicParser.java 1443102 2013-02-06 18:12:16Z tn $</dd>
  131. </dl>
  132. </li>
  133. </ul>
  134. </div>
  135. <div class="summary">
  136. <ul class="blockList">
  137. <li class="blockList">
  138. <!-- =========== FIELD SUMMARY =========== -->
  139. <ul class="blockList">
  140. <li class="blockList"><a name="field.summary">
  141. <!-- -->
  142. </a>
  143. <h3>Field Summary</h3>
  144. <ul class="blockList">
  145. <li class="blockList"><a name="fields.inherited.from.class.org.apache.commons.cli.Parser">
  146. <!-- -->
  147. </a>
  148. <h3>Fields inherited from class&nbsp;org.apache.commons.cli.<a href="../../../../org/apache/commons/cli/Parser.html" title="class in org.apache.commons.cli">Parser</a></h3>
  149. <code><a href="../../../../org/apache/commons/cli/Parser.html#cmd">cmd</a></code></li>
  150. </ul>
  151. </li>
  152. </ul>
  153. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  154. <ul class="blockList">
  155. <li class="blockList"><a name="constructor.summary">
  156. <!-- -->
  157. </a>
  158. <h3>Constructor Summary</h3>
  159. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  160. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  161. <tr>
  162. <th class="colOne" scope="col">Constructor and Description</th>
  163. </tr>
  164. <tr class="altColor">
  165. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/commons/cli/BasicParser.html#BasicParser--">BasicParser</a></span>()</code>
  166. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  167. &nbsp;</td>
  168. </tr>
  169. </table>
  170. </li>
  171. </ul>
  172. <!-- ========== METHOD SUMMARY =========== -->
  173. <ul class="blockList">
  174. <li class="blockList"><a name="method.summary">
  175. <!-- -->
  176. </a>
  177. <h3>Method Summary</h3>
  178. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  179. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  180. <tr>
  181. <th class="colFirst" scope="col">Modifier and Type</th>
  182. <th class="colLast" scope="col">Method and Description</th>
  183. </tr>
  184. <tr id="i0" class="altColor">
  185. <td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td>
  186. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/commons/cli/BasicParser.html#flatten-org.apache.commons.cli.Options-java.lang.String:A-boolean-">flatten</a></span>(<a href="../../../../org/apache/commons/cli/Options.html" title="class in org.apache.commons.cli">Options</a>&nbsp;options,
  187. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;arguments,
  188. boolean&nbsp;stopAtNonOption)</code>
  189. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  190. <div class="block">A simple implementation of <a href="../../../../org/apache/commons/cli/Parser.html" title="class in org.apache.commons.cli"><code>Parser</code></a>'s abstract
  191. <a href="../../../../org/apache/commons/cli/Parser.html#flatten-org.apache.commons.cli.Options-java.lang.String:A-boolean-"><code>flatten</code></a> method.</div>
  192. </td>
  193. </tr>
  194. </table>
  195. <ul class="blockList">
  196. <li class="blockList"><a name="methods.inherited.from.class.org.apache.commons.cli.Parser">
  197. <!-- -->
  198. </a>
  199. <h3>Methods inherited from class&nbsp;org.apache.commons.cli.<a href="../../../../org/apache/commons/cli/Parser.html" title="class in org.apache.commons.cli">Parser</a></h3>
  200. <code><a href="../../../../org/apache/commons/cli/Parser.html#checkRequiredOptions--">checkRequiredOptions</a>, <a href="../../../../org/apache/commons/cli/Parser.html#getOptions--">getOptions</a>, <a href="../../../../org/apache/commons/cli/Parser.html#getRequiredOptions--">getRequiredOptions</a>, <a href="../../../../org/apache/commons/cli/Parser.html#parse-org.apache.commons.cli.Options-java.lang.String:A-">parse</a>, <a href="../../../../org/apache/commons/cli/Parser.html#parse-org.apache.commons.cli.Options-java.lang.String:A-boolean-">parse</a>, <a href="../../../../org/apache/commons/cli/Parser.html#parse-org.apache.commons.cli.Options-java.lang.String:A-java.util.Properties-">parse</a>, <a href="../../../../org/apache/commons/cli/Parser.html#parse-org.apache.commons.cli.Options-java.lang.String:A-java.util.Properties-boolean-">parse</a>, <a href="../../../../org/apache/commons/cli/Parser.html#processArgs-org.apache.commons.cli.Option-java.util.ListIterator-">processArgs</a>, <a href="../../../../org/apache/commons/cli/Parser.html#processOption-java.lang.String-java.util.ListIterator-">processOption</a>, <a href="../../../../org/apache/commons/cli/Parser.html#processProperties-java.util.Properties-">processProperties</a>, <a href="../../../../org/apache/commons/cli/Parser.html#setOptions-org.apache.commons.cli.Options-">setOptions</a></code></li>
  201. </ul>
  202. <ul class="blockList">
  203. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  204. <!-- -->
  205. </a>
  206. <h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
  207. <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
  208. </ul>
  209. </li>
  210. </ul>
  211. </li>
  212. </ul>
  213. </div>
  214. <div class="details">
  215. <ul class="blockList">
  216. <li class="blockList">
  217. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  218. <ul class="blockList">
  219. <li class="blockList"><a name="constructor.detail">
  220. <!-- -->
  221. </a>
  222. <h3>Constructor Detail</h3>
  223. <a name="BasicParser--">
  224. <!-- -->
  225. </a>
  226. <ul class="blockListLast">
  227. <li class="blockList">
  228. <h4>BasicParser</h4>
  229. <pre>public&nbsp;BasicParser()</pre>
  230. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  231. </li>
  232. </ul>
  233. </li>
  234. </ul>
  235. <!-- ============ METHOD DETAIL ========== -->
  236. <ul class="blockList">
  237. <li class="blockList"><a name="method.detail">
  238. <!-- -->
  239. </a>
  240. <h3>Method Detail</h3>
  241. <a name="flatten-org.apache.commons.cli.Options-java.lang.String:A-boolean-">
  242. <!-- -->
  243. </a>
  244. <ul class="blockListLast">
  245. <li class="blockList">
  246. <h4>flatten</h4>
  247. <pre>protected&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;flatten(<a href="../../../../org/apache/commons/cli/Options.html" title="class in org.apache.commons.cli">Options</a>&nbsp;options,
  248. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;arguments,
  249. boolean&nbsp;stopAtNonOption)</pre>
  250. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  251. <div class="block"><p>A simple implementation of <a href="../../../../org/apache/commons/cli/Parser.html" title="class in org.apache.commons.cli"><code>Parser</code></a>'s abstract
  252. <a href="../../../../org/apache/commons/cli/Parser.html#flatten-org.apache.commons.cli.Options-java.lang.String:A-boolean-"><code>flatten</code></a> method.</p>
  253. <p><b>Note:</b> <code>options</code> and <code>stopAtNonOption</code>
  254. are not used in this <code>flatten</code> method.</p></div>
  255. <dl>
  256. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  257. <dd><code><a href="../../../../org/apache/commons/cli/Parser.html#flatten-org.apache.commons.cli.Options-java.lang.String:A-boolean-">flatten</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/commons/cli/Parser.html" title="class in org.apache.commons.cli">Parser</a></code></dd>
  258. <dt><span class="paramLabel">Parameters:</span></dt>
  259. <dd><code>options</code> - The command line <a href="../../../../org/apache/commons/cli/Options.html" title="class in org.apache.commons.cli"><code>Options</code></a></dd>
  260. <dd><code>arguments</code> - The command line arguments to be parsed</dd>
  261. <dd><code>stopAtNonOption</code> - Specifies whether to stop flattening
  262. when an non option is found.</dd>
  263. <dt><span class="returnLabel">Returns:</span></dt>
  264. <dd>The <code>arguments</code> String array.</dd>
  265. </dl>
  266. </li>
  267. </ul>
  268. </li>
  269. </ul>
  270. </li>
  271. </ul>
  272. </div>
  273. </div>
  274. <!-- ========= END OF CLASS DATA ========= -->
  275. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  276. <div class="bottomNav"><a name="navbar.bottom">
  277. <!-- -->
  278. </a>
  279. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  280. <a name="navbar.bottom.firstrow">
  281. <!-- -->
  282. </a>
  283. <ul class="navList" title="Navigation">
  284. <li><a href="../../../../org/apache/commons/cli/package-summary.html">Package</a></li>
  285. <li class="navBarCell1Rev">Class</li>
  286. <li><a href="class-use/BasicParser.html">Use</a></li>
  287. <li><a href="package-tree.html">Tree</a></li>
  288. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  289. <li><a href="../../../../index-all.html">Index</a></li>
  290. <li><a href="../../../../help-doc.html">Help</a></li>
  291. </ul>
  292. </div>
  293. <div class="subNav">
  294. <ul class="navList">
  295. <li><a href="../../../../org/apache/commons/cli/AmbiguousOptionException.html" title="class in org.apache.commons.cli"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  296. <li><a href="../../../../org/apache/commons/cli/CommandLine.html" title="class in org.apache.commons.cli"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  297. </ul>
  298. <ul class="navList">
  299. <li><a href="../../../../index.html?org/apache/commons/cli/BasicParser.html" target="_top">Frames</a></li>
  300. <li><a href="BasicParser.html" target="_top">No&nbsp;Frames</a></li>
  301. </ul>
  302. <ul class="navList" id="allclasses_navbar_bottom">
  303. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  304. </ul>
  305. <div>
  306. <script type="text/javascript"><!--
  307. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  308. if(window==top) {
  309. allClassesLink.style.display = "block";
  310. }
  311. else {
  312. allClassesLink.style.display = "none";
  313. }
  314. //-->
  315. </script>
  316. </div>
  317. <div>
  318. <ul class="subNavList">
  319. <li>Summary:&nbsp;</li>
  320. <li>Nested&nbsp;|&nbsp;</li>
  321. <li><a href="#fields.inherited.from.class.org.apache.commons.cli.Parser">Field</a>&nbsp;|&nbsp;</li>
  322. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  323. <li><a href="#method.summary">Method</a></li>
  324. </ul>
  325. <ul class="subNavList">
  326. <li>Detail:&nbsp;</li>
  327. <li>Field&nbsp;|&nbsp;</li>
  328. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  329. <li><a href="#method.detail">Method</a></li>
  330. </ul>
  331. </div>
  332. <a name="skip.navbar.bottom">
  333. <!-- -->
  334. </a></div>
  335. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  336. <p class="legalCopy"><small>Copyright &#169; 2002&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
  337. </body>
  338. </html>