PageRenderTime 42ms CodeModel.GetById 4ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/ant/docs/manual/api/org/apache/tools/ant/taskdefs/optional/sitraka/Socket.html

http://xformsdb.googlecode.com/
HTML | 299 lines | 244 code | 30 blank | 25 comment | 0 complexity | 40396b3b7956754e0f4f0f7fdd10c1f8 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, IPL-1.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc on Thu Jun 02 15:14:10 CEST 2005 -->
  6. <TITLE>
  7. Socket (Apache Ant API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.apache.tools.ant.taskdefs.optional.sitraka.Socket,Socket class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../stylesheet.css" TITLE="Style">
  11. </HEAD>
  12. <SCRIPT>
  13. function asd()
  14. {
  15. parent.document.title="Socket (Apache Ant API)";
  16. }
  17. </SCRIPT>
  18. <BODY BGCOLOR="white" onload="asd();">
  19. <!-- ========== START OF NAVBAR ========== -->
  20. <A NAME="navbar_top"><!-- --></A>
  21. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
  22. <TR>
  23. <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  24. <A NAME="navbar_top_firstrow"><!-- --></A>
  25. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  26. <TR ALIGN="center" VALIGN="top">
  27. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  32. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  33. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  34. </TR>
  35. </TABLE>
  36. </TD>
  37. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  38. </EM>
  39. </TD>
  40. </TR>
  41. <TR>
  42. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  43. &nbsp;<A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/sitraka/ReportFilters.Include.html"><B>PREV CLASS</B></A>&nbsp;
  44. &nbsp;<A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/sitraka/StringUtil.html"><B>NEXT CLASS</B></A></FONT></TD>
  45. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  46. <A HREF="../../../../../../../index.html" TARGET="_top"><B>FRAMES</B></A> &nbsp;
  47. &nbsp;<A HREF="Socket.html" TARGET="_top"><B>NO FRAMES</B></A> &nbsp;
  48. &nbsp;
  49. <SCRIPT>
  50. <!--
  51. if(window==top) {
  52. document.writeln('<A HREF="../../../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
  53. }
  54. //-->
  55. </SCRIPT>
  56. <NOSCRIPT>
  57. <A HREF="../../../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
  58. </NOSCRIPT>
  59. </FONT></TD>
  60. </TR>
  61. <TR>
  62. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  63. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  64. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  65. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  66. </TR>
  67. </TABLE>
  68. <!-- =========== END OF NAVBAR =========== -->
  69. <HR>
  70. <!-- ======== START OF CLASS DATA ======== -->
  71. <H2>
  72. <FONT SIZE="-1">
  73. org.apache.tools.ant.taskdefs.optional.sitraka</FONT>
  74. <BR>
  75. Class Socket</H2>
  76. <PRE>
  77. java.lang.Object
  78. |
  79. +--<B>org.apache.tools.ant.taskdefs.optional.sitraka.Socket</B>
  80. </PRE>
  81. <HR>
  82. <DL>
  83. <DT>public class <B>Socket</B><DT>extends java.lang.Object</DL>
  84. <P>
  85. Define a host and port to connect to if you want to do remote viewing.
  86. <tt>&lt;socket/&gt;</tt> defaults to host 127.0.0.1 and port 4444
  87. Otherwise it requires the host and port attributes to be set:
  88. <tt>
  89. &lt;socket host=&quote;175.30.12.1&quote; port=&quote;4567&quote;/&gt;
  90. </tt>
  91. <P>
  92. <P>
  93. <HR>
  94. <P>
  95. <!-- ======== NESTED CLASS SUMMARY ======== -->
  96. <!-- =========== FIELD SUMMARY =========== -->
  97. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  98. <A NAME="constructor_summary"><!-- --></A>
  99. <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
  100. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  101. <TD COLSPAN=2><FONT SIZE="+2">
  102. <B>Constructor Summary</B></FONT></TD>
  103. </TR>
  104. <TR BGCOLOR="white" CLASS="TableRowColor">
  105. <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/sitraka/Socket.html#Socket()">Socket</A></B>()</CODE>
  106. <BR>
  107. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  108. </TR>
  109. </TABLE>
  110. &nbsp;
  111. <!-- ========== METHOD SUMMARY =========== -->
  112. <A NAME="method_summary"><!-- --></A>
  113. <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
  114. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  115. <TD COLSPAN=2><FONT SIZE="+2">
  116. <B>Method Summary</B></FONT></TD>
  117. </TR>
  118. <TR BGCOLOR="white" CLASS="TableRowColor">
  119. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  120. <CODE>&nbsp;void</CODE></FONT></TD>
  121. <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/sitraka/Socket.html#setHost(java.lang.String)">setHost</A></B>(java.lang.String&nbsp;value)</CODE>
  122. <BR>
  123. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the host name/ip of the machine on which the Viewer is running;
  124. defaults to localhost.</TD>
  125. </TR>
  126. <TR BGCOLOR="white" CLASS="TableRowColor">
  127. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  128. <CODE>&nbsp;void</CODE></FONT></TD>
  129. <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/sitraka/Socket.html#setPort(java.lang.Integer)">setPort</A></B>(java.lang.Integer&nbsp;value)</CODE>
  130. <BR>
  131. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Optional port number for the viewer; default is 4444</TD>
  132. </TR>
  133. <TR BGCOLOR="white" CLASS="TableRowColor">
  134. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  135. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  136. <TD><CODE><B><A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/sitraka/Socket.html#toString()">toString</A></B>()</CODE>
  137. <BR>
  138. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if no host is set, returning ':&lt;port&gt;', will take localhost</TD>
  139. </TR>
  140. </TABLE>
  141. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  142. <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
  143. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  144. <TD><B>Methods inherited from class java.lang.Object</B></TD>
  145. </TR>
  146. <TR BGCOLOR="white" CLASS="TableRowColor">
  147. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
  148. </TR>
  149. </TABLE>
  150. &nbsp;
  151. <P>
  152. <!-- ============ FIELD DETAIL =========== -->
  153. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  154. <A NAME="constructor_detail"><!-- --></A>
  155. <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
  156. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  157. <TD COLSPAN=1><FONT SIZE="+2">
  158. <B>Constructor Detail</B></FONT></TD>
  159. </TR>
  160. </TABLE>
  161. <A NAME="Socket()"><!-- --></A><H3>
  162. Socket</H3>
  163. <PRE>
  164. public <B>Socket</B>()</PRE>
  165. <DL>
  166. </DL>
  167. <!-- ============ METHOD DETAIL ========== -->
  168. <A NAME="method_detail"><!-- --></A>
  169. <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
  170. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  171. <TD COLSPAN=1><FONT SIZE="+2">
  172. <B>Method Detail</B></FONT></TD>
  173. </TR>
  174. </TABLE>
  175. <A NAME="setHost(java.lang.String)"><!-- --></A><H3>
  176. setHost</H3>
  177. <PRE>
  178. public void <B>setHost</B>(java.lang.String&nbsp;value)</PRE>
  179. <DL>
  180. <DD>the host name/ip of the machine on which the Viewer is running;
  181. defaults to localhost.
  182. <P>
  183. <DD><DL>
  184. </DL>
  185. </DD>
  186. </DL>
  187. <HR>
  188. <A NAME="setPort(java.lang.Integer)"><!-- --></A><H3>
  189. setPort</H3>
  190. <PRE>
  191. public void <B>setPort</B>(java.lang.Integer&nbsp;value)</PRE>
  192. <DL>
  193. <DD>Optional port number for the viewer; default is 4444
  194. <P>
  195. <DD><DL>
  196. </DL>
  197. </DD>
  198. </DL>
  199. <HR>
  200. <A NAME="toString()"><!-- --></A><H3>
  201. toString</H3>
  202. <PRE>
  203. public java.lang.String <B>toString</B>()</PRE>
  204. <DL>
  205. <DD>if no host is set, returning ':&lt;port&gt;', will take localhost
  206. <P>
  207. <DD><DL>
  208. <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
  209. </DD>
  210. <DD><DL>
  211. </DL>
  212. </DD>
  213. </DL>
  214. <!-- ========= END OF CLASS DATA ========= -->
  215. <HR>
  216. <!-- ========== START OF NAVBAR ========== -->
  217. <A NAME="navbar_bottom"><!-- --></A>
  218. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
  219. <TR>
  220. <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  221. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  222. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  223. <TR ALIGN="center" VALIGN="top">
  224. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  225. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  226. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  227. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  228. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  229. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  230. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  231. </TR>
  232. </TABLE>
  233. </TD>
  234. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  235. </EM>
  236. </TD>
  237. </TR>
  238. <TR>
  239. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  240. &nbsp;<A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/sitraka/ReportFilters.Include.html"><B>PREV CLASS</B></A>&nbsp;
  241. &nbsp;<A HREF="../../../../../../../org/apache/tools/ant/taskdefs/optional/sitraka/StringUtil.html"><B>NEXT CLASS</B></A></FONT></TD>
  242. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  243. <A HREF="../../../../../../../index.html" TARGET="_top"><B>FRAMES</B></A> &nbsp;
  244. &nbsp;<A HREF="Socket.html" TARGET="_top"><B>NO FRAMES</B></A> &nbsp;
  245. &nbsp;
  246. <SCRIPT>
  247. <!--
  248. if(window==top) {
  249. document.writeln('<A HREF="../../../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
  250. }
  251. //-->
  252. </SCRIPT>
  253. <NOSCRIPT>
  254. <A HREF="../../../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
  255. </NOSCRIPT>
  256. </FONT></TD>
  257. </TR>
  258. <TR>
  259. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  260. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  261. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  262. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  263. </TR>
  264. </TABLE>
  265. <!-- =========== END OF NAVBAR =========== -->
  266. <HR>
  267. Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.
  268. </BODY>
  269. </HTML>