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.
 
 
 
 

349 lines
18 KiB

  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>GnuParser (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="GnuParser (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/GnuParser.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/DefaultParser.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/HelpFormatter.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/GnuParser.html" target="_top">Frames</a></li>
  56. <li><a href="GnuParser.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 GnuParser" class="title">Class GnuParser</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.GnuParser</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">GnuParser</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 GnuParser provides an implementation of the
  127. <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: GnuParser.java 1445352 2013-02-12 20:48:19Z 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/GnuParser.html#GnuParser--">GnuParser</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/GnuParser.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">This flatten method does so using the following rules:
  191. If an <a href="../../../../org/apache/commons/cli/Option.html" title="class in org.apache.commons.cli"><code>Option</code></a> exists for the first character of
  192. the <code>arguments</code> entry <b>AND</b> an <a href="../../../../org/apache/commons/cli/Option.html" title="class in org.apache.commons.cli"><code>Option</code></a>
  193. does not exist for the whole <code>argument</code> then
  194. add the first character as an option to the processed tokens
  195. list e.g.</div>
  196. </td>
  197. </tr>
  198. </table>
  199. <ul class="blockList">
  200. <li class="blockList"><a name="methods.inherited.from.class.org.apache.commons.cli.Parser">
  201. <!-- -->
  202. </a>
  203. <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>
  204. <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>
  205. </ul>
  206. <ul class="blockList">
  207. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  208. <!-- -->
  209. </a>
  210. <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>
  211. <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>
  212. </ul>
  213. </li>
  214. </ul>
  215. </li>
  216. </ul>
  217. </div>
  218. <div class="details">
  219. <ul class="blockList">
  220. <li class="blockList">
  221. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  222. <ul class="blockList">
  223. <li class="blockList"><a name="constructor.detail">
  224. <!-- -->
  225. </a>
  226. <h3>Constructor Detail</h3>
  227. <a name="GnuParser--">
  228. <!-- -->
  229. </a>
  230. <ul class="blockListLast">
  231. <li class="blockList">
  232. <h4>GnuParser</h4>
  233. <pre>public&nbsp;GnuParser()</pre>
  234. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  235. </li>
  236. </ul>
  237. </li>
  238. </ul>
  239. <!-- ============ METHOD DETAIL ========== -->
  240. <ul class="blockList">
  241. <li class="blockList"><a name="method.detail">
  242. <!-- -->
  243. </a>
  244. <h3>Method Detail</h3>
  245. <a name="flatten-org.apache.commons.cli.Options-java.lang.String:A-boolean-">
  246. <!-- -->
  247. </a>
  248. <ul class="blockListLast">
  249. <li class="blockList">
  250. <h4>flatten</h4>
  251. <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,
  252. <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,
  253. boolean&nbsp;stopAtNonOption)</pre>
  254. <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
  255. <div class="block">This flatten method does so using the following rules:
  256. <ol>
  257. <li>If an <a href="../../../../org/apache/commons/cli/Option.html" title="class in org.apache.commons.cli"><code>Option</code></a> exists for the first character of
  258. the <code>arguments</code> entry <b>AND</b> an <a href="../../../../org/apache/commons/cli/Option.html" title="class in org.apache.commons.cli"><code>Option</code></a>
  259. does not exist for the whole <code>argument</code> then
  260. add the first character as an option to the processed tokens
  261. list e.g. "-D" and add the rest of the entry to the also.</li>
  262. <li>Otherwise just add the token to the processed tokens list.</li>
  263. </ol></div>
  264. <dl>
  265. <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
  266. <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>
  267. <dt><span class="paramLabel">Parameters:</span></dt>
  268. <dd><code>options</code> - The Options to parse the arguments by.</dd>
  269. <dd><code>arguments</code> - The arguments that have to be flattened.</dd>
  270. <dd><code>stopAtNonOption</code> - specifies whether to stop flattening when
  271. a non option has been encountered</dd>
  272. <dt><span class="returnLabel">Returns:</span></dt>
  273. <dd>a String array of the flattened arguments</dd>
  274. </dl>
  275. </li>
  276. </ul>
  277. </li>
  278. </ul>
  279. </li>
  280. </ul>
  281. </div>
  282. </div>
  283. <!-- ========= END OF CLASS DATA ========= -->
  284. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  285. <div class="bottomNav"><a name="navbar.bottom">
  286. <!-- -->
  287. </a>
  288. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  289. <a name="navbar.bottom.firstrow">
  290. <!-- -->
  291. </a>
  292. <ul class="navList" title="Navigation">
  293. <li><a href="../../../../org/apache/commons/cli/package-summary.html">Package</a></li>
  294. <li class="navBarCell1Rev">Class</li>
  295. <li><a href="class-use/GnuParser.html">Use</a></li>
  296. <li><a href="package-tree.html">Tree</a></li>
  297. <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
  298. <li><a href="../../../../index-all.html">Index</a></li>
  299. <li><a href="../../../../help-doc.html">Help</a></li>
  300. </ul>
  301. </div>
  302. <div class="subNav">
  303. <ul class="navList">
  304. <li><a href="../../../../org/apache/commons/cli/DefaultParser.html" title="class in org.apache.commons.cli"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  305. <li><a href="../../../../org/apache/commons/cli/HelpFormatter.html" title="class in org.apache.commons.cli"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  306. </ul>
  307. <ul class="navList">
  308. <li><a href="../../../../index.html?org/apache/commons/cli/GnuParser.html" target="_top">Frames</a></li>
  309. <li><a href="GnuParser.html" target="_top">No&nbsp;Frames</a></li>
  310. </ul>
  311. <ul class="navList" id="allclasses_navbar_bottom">
  312. <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  313. </ul>
  314. <div>
  315. <script type="text/javascript"><!--
  316. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  317. if(window==top) {
  318. allClassesLink.style.display = "block";
  319. }
  320. else {
  321. allClassesLink.style.display = "none";
  322. }
  323. //-->
  324. </script>
  325. </div>
  326. <div>
  327. <ul class="subNavList">
  328. <li>Summary:&nbsp;</li>
  329. <li>Nested&nbsp;|&nbsp;</li>
  330. <li><a href="#fields.inherited.from.class.org.apache.commons.cli.Parser">Field</a>&nbsp;|&nbsp;</li>
  331. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  332. <li><a href="#method.summary">Method</a></li>
  333. </ul>
  334. <ul class="subNavList">
  335. <li>Detail:&nbsp;</li>
  336. <li>Field&nbsp;|&nbsp;</li>
  337. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  338. <li><a href="#method.detail">Method</a></li>
  339. </ul>
  340. </div>
  341. <a name="skip.navbar.bottom">
  342. <!-- -->
  343. </a></div>
  344. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  345. <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>
  346. </body>
  347. </html>