/Generated/v4.0/Java.Net.cs

https://gitlab.com/Pfhoenix/api · C# · 1150 lines · 461 code · 99 blank · 590 comment · 0 complexity · a3883ab2467031b1ebe7cc5ff8fb3d70 MD5 · raw file

  1. // Copyright (C) 2014 dot42
  2. //
  3. // Original filename: Java.Net.cs
  4. //
  5. // Licensed under the Apache License, Version 2.0 (the "License");
  6. // you may not use this file except in compliance with the License.
  7. // You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing, software
  12. // distributed under the License is distributed on an "AS IS" BASIS,
  13. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. // See the License for the specific language governing permissions and
  15. // limitations under the License.
  16. #pragma warning disable 1717
  17. namespace Java.Net
  18. {
  19. /// <summary>
  20. /// <para>This class implements a UDP socket for sending and receiving <c> DatagramPacket </c> . A <c> DatagramSocket </c> object can be used for both endpoints of a connection for a packet delivery service.</para><para><para>DatagramPacket </para><simplesectsep></simplesectsep><para>DatagramSocketImplFactory </para></para>
  21. /// </summary>
  22. /// <java-name>
  23. /// java/net/DatagramSocket
  24. /// </java-name>
  25. [Dot42.DexImport("java/net/DatagramSocket", AccessFlags = 33)]
  26. public partial class DatagramSocket
  27. /* scope: __dot42__ */
  28. {
  29. /// <summary>
  30. /// <para>Constructs a UDP datagram socket which is bound to any available port on the localhost.</para><para></para>
  31. /// </summary>
  32. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  33. public DatagramSocket() /* MethodBuilder.Create */
  34. {
  35. }
  36. /// <summary>
  37. /// <para>Constructs a UDP datagram socket which is bound to the specific port <c> aPort </c> on the localhost. Valid values for <c> aPort </c> are between 0 and 65535 inclusive.</para><para></para>
  38. /// </summary>
  39. [Dot42.DexImport("<init>", "(I)V", AccessFlags = 1)]
  40. public DatagramSocket(int aPort) /* MethodBuilder.Create */
  41. {
  42. }
  43. /// <summary>
  44. /// <para>Constructs a UDP datagram socket which is bound to the specific local address <c> addr </c> on port <c> aPort </c> . Valid values for <c> aPort </c> are between 0 and 65535 inclusive.</para><para></para>
  45. /// </summary>
  46. [Dot42.DexImport("<init>", "(ILjava/net/InetAddress;)V", AccessFlags = 1)]
  47. public DatagramSocket(int aPort, global::Java.Net.InetAddress addr) /* MethodBuilder.Create */
  48. {
  49. }
  50. /// <summary>
  51. /// <para>Constructs a UDP datagram socket which is bound to the specific port <c> aPort </c> on the localhost. Valid values for <c> aPort </c> are between 0 and 65535 inclusive.</para><para></para>
  52. /// </summary>
  53. [Dot42.DexImport("<init>", "(Ljava/net/DatagramSocketImpl;)V", AccessFlags = 4)]
  54. protected internal DatagramSocket(global::Java.Net.DatagramSocketImpl aPort) /* MethodBuilder.Create */
  55. {
  56. }
  57. /// <summary>
  58. /// <para>Constructs a UDP datagram socket which is bound to the specific port <c> aPort </c> on the localhost. Valid values for <c> aPort </c> are between 0 and 65535 inclusive.</para><para></para>
  59. /// </summary>
  60. [Dot42.DexImport("<init>", "(Ljava/net/SocketAddress;)V", AccessFlags = 1)]
  61. public DatagramSocket(global::Java.Net.SocketAddress aPort) /* MethodBuilder.Create */
  62. {
  63. }
  64. /// <summary>
  65. /// <para>Closes this UDP datagram socket and all possibly associated channels. </para>
  66. /// </summary>
  67. /// <java-name>
  68. /// close
  69. /// </java-name>
  70. [Dot42.DexImport("close", "()V", AccessFlags = 1)]
  71. public virtual void Close() /* MethodBuilder.Create */
  72. {
  73. }
  74. /// <summary>
  75. /// <para>Disconnects this UDP datagram socket from the remote host. This method called on an unconnected socket does nothing. </para>
  76. /// </summary>
  77. /// <java-name>
  78. /// disconnect
  79. /// </java-name>
  80. [Dot42.DexImport("disconnect", "()V", AccessFlags = 1)]
  81. public virtual void Disconnect() /* MethodBuilder.Create */
  82. {
  83. }
  84. /// <summary>
  85. /// <para>Gets the <c> InetAddress </c> instance representing the remote address to which this UDP datagram socket is connected.</para><para></para>
  86. /// </summary>
  87. /// <returns>
  88. /// <para>the remote address this socket is connected to or <c> null </c> if this socket is not connected. </para>
  89. /// </returns>
  90. /// <java-name>
  91. /// getInetAddress
  92. /// </java-name>
  93. [Dot42.DexImport("getInetAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  94. public virtual global::Java.Net.InetAddress GetInetAddress() /* MethodBuilder.Create */
  95. {
  96. return default(global::Java.Net.InetAddress);
  97. }
  98. /// <summary>
  99. /// <para>Gets the <c> InetAddress </c> instance representing the bound local address of this UDP datagram socket.</para><para></para>
  100. /// </summary>
  101. /// <returns>
  102. /// <para>the local address to which this socket is bound to or <c> null </c> if this socket is closed. </para>
  103. /// </returns>
  104. /// <java-name>
  105. /// getLocalAddress
  106. /// </java-name>
  107. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  108. public virtual global::Java.Net.InetAddress GetLocalAddress() /* MethodBuilder.Create */
  109. {
  110. return default(global::Java.Net.InetAddress);
  111. }
  112. /// <summary>
  113. /// <para>Gets the local port which this socket is bound to.</para><para></para>
  114. /// </summary>
  115. /// <returns>
  116. /// <para>the local port of this socket or <c> -1 </c> if this socket is closed and <c> 0 </c> if it is unbound. </para>
  117. /// </returns>
  118. /// <java-name>
  119. /// getLocalPort
  120. /// </java-name>
  121. [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 1)]
  122. public virtual int GetLocalPort() /* MethodBuilder.Create */
  123. {
  124. return default(int);
  125. }
  126. /// <summary>
  127. /// <para>Gets the remote port which this socket is connected to.</para><para></para>
  128. /// </summary>
  129. /// <returns>
  130. /// <para>the remote port of this socket. The return value <c> -1 </c> indicates that this socket is not connected. </para>
  131. /// </returns>
  132. /// <java-name>
  133. /// getPort
  134. /// </java-name>
  135. [Dot42.DexImport("getPort", "()I", AccessFlags = 1)]
  136. public virtual int GetPort() /* MethodBuilder.Create */
  137. {
  138. return default(int);
  139. }
  140. /// <summary>
  141. /// <para>Returns this socket's receive buffer size. </para>
  142. /// </summary>
  143. /// <java-name>
  144. /// getReceiveBufferSize
  145. /// </java-name>
  146. [Dot42.DexImport("getReceiveBufferSize", "()I", AccessFlags = 33)]
  147. public virtual int GetReceiveBufferSize() /* MethodBuilder.Create */
  148. {
  149. return default(int);
  150. }
  151. /// <summary>
  152. /// <para>Returns this socket's send buffer size. </para>
  153. /// </summary>
  154. /// <java-name>
  155. /// getSendBufferSize
  156. /// </java-name>
  157. [Dot42.DexImport("getSendBufferSize", "()I", AccessFlags = 33)]
  158. public virtual int GetSendBufferSize() /* MethodBuilder.Create */
  159. {
  160. return default(int);
  161. }
  162. /// <summary>
  163. /// <para>Gets the socket receive timeout.</para><para></para>
  164. /// </summary>
  165. /// <java-name>
  166. /// getSoTimeout
  167. /// </java-name>
  168. [Dot42.DexImport("getSoTimeout", "()I", AccessFlags = 33)]
  169. public virtual int GetSoTimeout() /* MethodBuilder.Create */
  170. {
  171. return default(int);
  172. }
  173. /// <summary>
  174. /// <para>Receives a packet from this socket and stores it in the argument <c> pack </c> . All fields of <c> pack </c> must be set according to the data received. If the received data is longer than the packet buffer size it is truncated. This method blocks until a packet is received or a timeout has expired.</para><para></para>
  175. /// </summary>
  176. /// <java-name>
  177. /// receive
  178. /// </java-name>
  179. [Dot42.DexImport("receive", "(Ljava/net/DatagramPacket;)V", AccessFlags = 33)]
  180. public virtual void Receive(global::Java.Net.DatagramPacket pack) /* MethodBuilder.Create */
  181. {
  182. }
  183. /// <summary>
  184. /// <para>Sends a packet over this socket.</para><para></para>
  185. /// </summary>
  186. /// <java-name>
  187. /// send
  188. /// </java-name>
  189. [Dot42.DexImport("send", "(Ljava/net/DatagramPacket;)V", AccessFlags = 1)]
  190. public virtual void Send(global::Java.Net.DatagramPacket pack) /* MethodBuilder.Create */
  191. {
  192. }
  193. /// <summary>
  194. /// <para>Sets this socket's send buffer size. </para>
  195. /// </summary>
  196. /// <java-name>
  197. /// setSendBufferSize
  198. /// </java-name>
  199. [Dot42.DexImport("setSendBufferSize", "(I)V", AccessFlags = 33)]
  200. public virtual void SetSendBufferSize(int size) /* MethodBuilder.Create */
  201. {
  202. }
  203. /// <summary>
  204. /// <para>Sets this socket's receive buffer size. </para>
  205. /// </summary>
  206. /// <java-name>
  207. /// setReceiveBufferSize
  208. /// </java-name>
  209. [Dot42.DexImport("setReceiveBufferSize", "(I)V", AccessFlags = 33)]
  210. public virtual void SetReceiveBufferSize(int size) /* MethodBuilder.Create */
  211. {
  212. }
  213. /// <summary>
  214. /// <para>Sets the read timeout in milliseconds for this socket. This receive timeout defines the period the socket will block waiting to receive data before throwing an <c> InterruptedIOException </c> . The value <c> 0 </c> (default) is used to set an infinite timeout. To have effect this option must be set before the blocking method was called.</para><para></para>
  215. /// </summary>
  216. /// <java-name>
  217. /// setSoTimeout
  218. /// </java-name>
  219. [Dot42.DexImport("setSoTimeout", "(I)V", AccessFlags = 33)]
  220. public virtual void SetSoTimeout(int timeout) /* MethodBuilder.Create */
  221. {
  222. }
  223. /// <summary>
  224. /// <para>Sets the socket implementation factory. This may only be invoked once over the lifetime of the application. This factory is used to create a new datagram socket implementation.</para><para><para>DatagramSocketImplFactory </para></para>
  225. /// </summary>
  226. /// <java-name>
  227. /// setDatagramSocketImplFactory
  228. /// </java-name>
  229. [Dot42.DexImport("setDatagramSocketImplFactory", "(Ljava/net/DatagramSocketImplFactory;)V", AccessFlags = 41)]
  230. public static void SetDatagramSocketImplFactory(global::Java.Net.IDatagramSocketImplFactory fac) /* MethodBuilder.Create */
  231. {
  232. }
  233. /// <summary>
  234. /// <para>Binds this socket to the local address and port specified by <c> localAddr </c> . If this value is <c> null </c> any free port on a valid local address is used.</para><para></para>
  235. /// </summary>
  236. /// <java-name>
  237. /// bind
  238. /// </java-name>
  239. [Dot42.DexImport("bind", "(Ljava/net/SocketAddress;)V", AccessFlags = 1)]
  240. public virtual void Bind(global::Java.Net.SocketAddress localAddr) /* MethodBuilder.Create */
  241. {
  242. }
  243. /// <summary>
  244. /// <para>Connects this datagram socket to the address and port specified by <c> peer </c> . Future calls to send will use this as the default target, and receive will only accept packets from this source.</para><para></para>
  245. /// </summary>
  246. /// <java-name>
  247. /// connect
  248. /// </java-name>
  249. [Dot42.DexImport("connect", "(Ljava/net/SocketAddress;)V", AccessFlags = 1)]
  250. public virtual void Connect(global::Java.Net.SocketAddress peer) /* MethodBuilder.Create */
  251. {
  252. }
  253. /// <summary>
  254. /// <para>Connects this datagram socket to the specific <c> address </c> and <c> port </c> . Future calls to send will use this as the default target, and receive will only accept packets from this source.</para><para>Beware: because it can't throw, this method silently ignores failures. Use connect(SocketAddress) instead. </para>
  255. /// </summary>
  256. /// <java-name>
  257. /// connect
  258. /// </java-name>
  259. [Dot42.DexImport("connect", "(Ljava/net/InetAddress;I)V", AccessFlags = 1)]
  260. public virtual void Connect(global::Java.Net.InetAddress address, int port) /* MethodBuilder.Create */
  261. {
  262. }
  263. /// <summary>
  264. /// <para>Returns true if this socket is bound to a local address. See bind. </para>
  265. /// </summary>
  266. /// <java-name>
  267. /// isBound
  268. /// </java-name>
  269. [Dot42.DexImport("isBound", "()Z", AccessFlags = 1)]
  270. public virtual bool IsBound() /* MethodBuilder.Create */
  271. {
  272. return default(bool);
  273. }
  274. /// <summary>
  275. /// <para>Returns true if this datagram socket is connected to a remote address. See connect. </para>
  276. /// </summary>
  277. /// <java-name>
  278. /// isConnected
  279. /// </java-name>
  280. [Dot42.DexImport("isConnected", "()Z", AccessFlags = 1)]
  281. public virtual bool IsConnected() /* MethodBuilder.Create */
  282. {
  283. return default(bool);
  284. }
  285. /// <summary>
  286. /// <para>Returns the <c> SocketAddress </c> this socket is connected to, or null for an unconnected socket. </para>
  287. /// </summary>
  288. /// <java-name>
  289. /// getRemoteSocketAddress
  290. /// </java-name>
  291. [Dot42.DexImport("getRemoteSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
  292. public virtual global::Java.Net.SocketAddress GetRemoteSocketAddress() /* MethodBuilder.Create */
  293. {
  294. return default(global::Java.Net.SocketAddress);
  295. }
  296. /// <summary>
  297. /// <para>Returns the <c> SocketAddress </c> this socket is bound to, or null for an unbound socket. </para>
  298. /// </summary>
  299. /// <java-name>
  300. /// getLocalSocketAddress
  301. /// </java-name>
  302. [Dot42.DexImport("getLocalSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
  303. public virtual global::Java.Net.SocketAddress GetLocalSocketAddress() /* MethodBuilder.Create */
  304. {
  305. return default(global::Java.Net.SocketAddress);
  306. }
  307. /// <summary>
  308. /// <para>Sets the socket option <c> SocketOptions.SO_REUSEADDR </c> . This option has to be enabled if more than one UDP socket wants to be bound to the same address. That could be needed for receiving multicast packets. </para><para>There is an undefined behavior if this option is set after the socket is already bound.</para><para></para>
  309. /// </summary>
  310. /// <java-name>
  311. /// setReuseAddress
  312. /// </java-name>
  313. [Dot42.DexImport("setReuseAddress", "(Z)V", AccessFlags = 1)]
  314. public virtual void SetReuseAddress(bool reuse) /* MethodBuilder.Create */
  315. {
  316. }
  317. /// <summary>
  318. /// <para>Gets the state of the socket option <c> SocketOptions.SO_REUSEADDR </c> .</para><para></para>
  319. /// </summary>
  320. /// <returns>
  321. /// <para><c> true </c> if the option is enabled, <c> false </c> otherwise. </para>
  322. /// </returns>
  323. /// <java-name>
  324. /// getReuseAddress
  325. /// </java-name>
  326. [Dot42.DexImport("getReuseAddress", "()Z", AccessFlags = 1)]
  327. public virtual bool GetReuseAddress() /* MethodBuilder.Create */
  328. {
  329. return default(bool);
  330. }
  331. /// <summary>
  332. /// <para>Sets the socket option <c> SocketOptions.SO_BROADCAST </c> . This option must be enabled to send broadcast messages.</para><para></para>
  333. /// </summary>
  334. /// <java-name>
  335. /// setBroadcast
  336. /// </java-name>
  337. [Dot42.DexImport("setBroadcast", "(Z)V", AccessFlags = 1)]
  338. public virtual void SetBroadcast(bool broadcast) /* MethodBuilder.Create */
  339. {
  340. }
  341. /// <summary>
  342. /// <para>Gets the state of the socket option <c> SocketOptions.SO_BROADCAST </c> .</para><para></para>
  343. /// </summary>
  344. /// <returns>
  345. /// <para><c> true </c> if the option is enabled, <c> false </c> otherwise. </para>
  346. /// </returns>
  347. /// <java-name>
  348. /// getBroadcast
  349. /// </java-name>
  350. [Dot42.DexImport("getBroadcast", "()Z", AccessFlags = 1)]
  351. public virtual bool GetBroadcast() /* MethodBuilder.Create */
  352. {
  353. return default(bool);
  354. }
  355. /// <summary>
  356. /// <para>Sets the {<para>SocketOptions::IP_TOS} value for every packet sent by this socket.</para></para>
  357. /// </summary>
  358. /// <java-name>
  359. /// setTrafficClass
  360. /// </java-name>
  361. [Dot42.DexImport("setTrafficClass", "(I)V", AccessFlags = 1)]
  362. public virtual void SetTrafficClass(int value) /* MethodBuilder.Create */
  363. {
  364. }
  365. /// <summary>
  366. /// <para>Returns this socket's {<para>SocketOptions::IP_TOS} setting.</para></para>
  367. /// </summary>
  368. /// <java-name>
  369. /// getTrafficClass
  370. /// </java-name>
  371. [Dot42.DexImport("getTrafficClass", "()I", AccessFlags = 1)]
  372. public virtual int GetTrafficClass() /* MethodBuilder.Create */
  373. {
  374. return default(int);
  375. }
  376. /// <summary>
  377. /// <para>Gets the state of this socket.</para><para></para>
  378. /// </summary>
  379. /// <returns>
  380. /// <para><c> true </c> if the socket is closed, <c> false </c> otherwise. </para>
  381. /// </returns>
  382. /// <java-name>
  383. /// isClosed
  384. /// </java-name>
  385. [Dot42.DexImport("isClosed", "()Z", AccessFlags = 1)]
  386. public virtual bool IsClosed() /* MethodBuilder.Create */
  387. {
  388. return default(bool);
  389. }
  390. /// <summary>
  391. /// <para>Returns this socket's <c> DatagramChannel </c> , if one exists. A channel is available only if this socket wraps a channel. (That is, you can go from a channel to a socket and back again, but you can't go from an arbitrary socket to a channel.) In practice, this means that the socket must have been created by java.nio.channels.DatagramChannel#open. </para>
  392. /// </summary>
  393. /// <java-name>
  394. /// getChannel
  395. /// </java-name>
  396. [Dot42.DexImport("getChannel", "()Ljava/nio/channels/DatagramChannel;", AccessFlags = 1)]
  397. public virtual global::Java.Nio.Channels.DatagramChannel GetChannel() /* MethodBuilder.Create */
  398. {
  399. return default(global::Java.Nio.Channels.DatagramChannel);
  400. }
  401. /// <summary>
  402. /// <para>Gets the <c> InetAddress </c> instance representing the remote address to which this UDP datagram socket is connected.</para><para></para>
  403. /// </summary>
  404. /// <returns>
  405. /// <para>the remote address this socket is connected to or <c> null </c> if this socket is not connected. </para>
  406. /// </returns>
  407. /// <java-name>
  408. /// getInetAddress
  409. /// </java-name>
  410. public global::Java.Net.InetAddress InetAddress
  411. {
  412. [Dot42.DexImport("getInetAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  413. get{ return GetInetAddress(); }
  414. }
  415. /// <summary>
  416. /// <para>Gets the <c> InetAddress </c> instance representing the bound local address of this UDP datagram socket.</para><para></para>
  417. /// </summary>
  418. /// <returns>
  419. /// <para>the local address to which this socket is bound to or <c> null </c> if this socket is closed. </para>
  420. /// </returns>
  421. /// <java-name>
  422. /// getLocalAddress
  423. /// </java-name>
  424. public global::Java.Net.InetAddress LocalAddress
  425. {
  426. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  427. get{ return GetLocalAddress(); }
  428. }
  429. /// <summary>
  430. /// <para>Gets the local port which this socket is bound to.</para><para></para>
  431. /// </summary>
  432. /// <returns>
  433. /// <para>the local port of this socket or <c> -1 </c> if this socket is closed and <c> 0 </c> if it is unbound. </para>
  434. /// </returns>
  435. /// <java-name>
  436. /// getLocalPort
  437. /// </java-name>
  438. public int LocalPort
  439. {
  440. [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 1)]
  441. get{ return GetLocalPort(); }
  442. }
  443. /// <summary>
  444. /// <para>Gets the remote port which this socket is connected to.</para><para></para>
  445. /// </summary>
  446. /// <returns>
  447. /// <para>the remote port of this socket. The return value <c> -1 </c> indicates that this socket is not connected. </para>
  448. /// </returns>
  449. /// <java-name>
  450. /// getPort
  451. /// </java-name>
  452. public int Port
  453. {
  454. [Dot42.DexImport("getPort", "()I", AccessFlags = 1)]
  455. get{ return GetPort(); }
  456. }
  457. /// <summary>
  458. /// <para>Returns this socket's receive buffer size. </para>
  459. /// </summary>
  460. /// <java-name>
  461. /// getReceiveBufferSize
  462. /// </java-name>
  463. public int ReceiveBufferSize
  464. {
  465. [Dot42.DexImport("getReceiveBufferSize", "()I", AccessFlags = 33)]
  466. get{ return GetReceiveBufferSize(); }
  467. [Dot42.DexImport("setReceiveBufferSize", "(I)V", AccessFlags = 33)]
  468. set{ SetReceiveBufferSize(value); }
  469. }
  470. /// <summary>
  471. /// <para>Returns this socket's send buffer size. </para>
  472. /// </summary>
  473. /// <java-name>
  474. /// getSendBufferSize
  475. /// </java-name>
  476. public int SendBufferSize
  477. {
  478. [Dot42.DexImport("getSendBufferSize", "()I", AccessFlags = 33)]
  479. get{ return GetSendBufferSize(); }
  480. [Dot42.DexImport("setSendBufferSize", "(I)V", AccessFlags = 33)]
  481. set{ SetSendBufferSize(value); }
  482. }
  483. /// <summary>
  484. /// <para>Gets the socket receive timeout.</para><para></para>
  485. /// </summary>
  486. /// <java-name>
  487. /// getSoTimeout
  488. /// </java-name>
  489. public int SoTimeout
  490. {
  491. [Dot42.DexImport("getSoTimeout", "()I", AccessFlags = 33)]
  492. get{ return GetSoTimeout(); }
  493. [Dot42.DexImport("setSoTimeout", "(I)V", AccessFlags = 33)]
  494. set{ SetSoTimeout(value); }
  495. }
  496. /// <summary>
  497. /// <para>Returns the <c> SocketAddress </c> this socket is connected to, or null for an unconnected socket. </para>
  498. /// </summary>
  499. /// <java-name>
  500. /// getRemoteSocketAddress
  501. /// </java-name>
  502. public global::Java.Net.SocketAddress RemoteSocketAddress
  503. {
  504. [Dot42.DexImport("getRemoteSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
  505. get{ return GetRemoteSocketAddress(); }
  506. }
  507. /// <summary>
  508. /// <para>Returns the <c> SocketAddress </c> this socket is bound to, or null for an unbound socket. </para>
  509. /// </summary>
  510. /// <java-name>
  511. /// getLocalSocketAddress
  512. /// </java-name>
  513. public global::Java.Net.SocketAddress LocalSocketAddress
  514. {
  515. [Dot42.DexImport("getLocalSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
  516. get{ return GetLocalSocketAddress(); }
  517. }
  518. /// <summary>
  519. /// <para>Gets the state of the socket option <c> SocketOptions.SO_REUSEADDR </c> .</para><para></para>
  520. /// </summary>
  521. /// <returns>
  522. /// <para><c> true </c> if the option is enabled, <c> false </c> otherwise. </para>
  523. /// </returns>
  524. /// <java-name>
  525. /// getReuseAddress
  526. /// </java-name>
  527. public bool IsReuseAddress
  528. {
  529. [Dot42.DexImport("getReuseAddress", "()Z", AccessFlags = 1)]
  530. get{ return GetReuseAddress(); }
  531. [Dot42.DexImport("setReuseAddress", "(Z)V", AccessFlags = 1)]
  532. set{ SetReuseAddress(value); }
  533. }
  534. /// <summary>
  535. /// <para>Gets the state of the socket option <c> SocketOptions.SO_BROADCAST </c> .</para><para></para>
  536. /// </summary>
  537. /// <returns>
  538. /// <para><c> true </c> if the option is enabled, <c> false </c> otherwise. </para>
  539. /// </returns>
  540. /// <java-name>
  541. /// getBroadcast
  542. /// </java-name>
  543. public bool IsBroadcast
  544. {
  545. [Dot42.DexImport("getBroadcast", "()Z", AccessFlags = 1)]
  546. get{ return GetBroadcast(); }
  547. [Dot42.DexImport("setBroadcast", "(Z)V", AccessFlags = 1)]
  548. set{ SetBroadcast(value); }
  549. }
  550. /// <summary>
  551. /// <para>Returns this socket's {<para>SocketOptions::IP_TOS} setting.</para></para>
  552. /// </summary>
  553. /// <java-name>
  554. /// getTrafficClass
  555. /// </java-name>
  556. public int TrafficClass
  557. {
  558. [Dot42.DexImport("getTrafficClass", "()I", AccessFlags = 1)]
  559. get{ return GetTrafficClass(); }
  560. [Dot42.DexImport("setTrafficClass", "(I)V", AccessFlags = 1)]
  561. set{ SetTrafficClass(value); }
  562. }
  563. /// <summary>
  564. /// <para>Returns this socket's <c> DatagramChannel </c> , if one exists. A channel is available only if this socket wraps a channel. (That is, you can go from a channel to a socket and back again, but you can't go from an arbitrary socket to a channel.) In practice, this means that the socket must have been created by java.nio.channels.DatagramChannel#open. </para>
  565. /// </summary>
  566. /// <java-name>
  567. /// getChannel
  568. /// </java-name>
  569. public global::Java.Nio.Channels.DatagramChannel Channel
  570. {
  571. [Dot42.DexImport("getChannel", "()Ljava/nio/channels/DatagramChannel;", AccessFlags = 1)]
  572. get{ return GetChannel(); }
  573. }
  574. }
  575. /// <summary>
  576. /// <para>An IPv4 address. See InetAddress. </para>
  577. /// </summary>
  578. /// <java-name>
  579. /// java/net/Inet4Address
  580. /// </java-name>
  581. [Dot42.DexImport("java/net/Inet4Address", AccessFlags = 49)]
  582. public sealed partial class Inet4Address : global::Java.Net.InetAddress
  583. /* scope: __dot42__ */
  584. {
  585. [Dot42.DexImport("<init>", "()V", AccessFlags = 0)]
  586. internal Inet4Address() /* MethodBuilder.Create */
  587. {
  588. }
  589. /// <summary>
  590. /// <para>Returns whether this is the IPv6 unspecified wildcard address <c> :: </c> or the IPv4 "any" address, <c> 0.0.0.0 </c> . </para>
  591. /// </summary>
  592. /// <java-name>
  593. /// isAnyLocalAddress
  594. /// </java-name>
  595. [Dot42.DexImport("isAnyLocalAddress", "()Z", AccessFlags = 1)]
  596. public override bool IsAnyLocalAddress() /* MethodBuilder.Create */
  597. {
  598. return default(bool);
  599. }
  600. /// <summary>
  601. /// <para>Returns whether this address is a link-local address or not.</para><para>Valid IPv6 link-local addresses have the prefix <c> fe80::/10 </c> .</para><para> "Default Address Selection for Internet Protocol Version 6 (IPv6)" states that both IPv4 auto-configuration addresses (prefix <c> 169.254/16 </c> ) and IPv4 loopback addresses (prefix <c> 127/8 </c> ) have link-local scope, but Inet4Address only considers the auto-configuration addresses to have link-local scope. That is: the IPv4 loopback address returns false. </para>
  602. /// </summary>
  603. /// <java-name>
  604. /// isLinkLocalAddress
  605. /// </java-name>
  606. [Dot42.DexImport("isLinkLocalAddress", "()Z", AccessFlags = 1)]
  607. public override bool IsLinkLocalAddress() /* MethodBuilder.Create */
  608. {
  609. return default(bool);
  610. }
  611. /// <summary>
  612. /// <para>Returns whether this address is a loopback address or not.</para><para>Valid IPv4 loopback addresses have the prefix <c> 127/8 </c> .</para><para>The only valid IPv6 loopback address is <c> ::1 </c> . </para>
  613. /// </summary>
  614. /// <java-name>
  615. /// isLoopbackAddress
  616. /// </java-name>
  617. [Dot42.DexImport("isLoopbackAddress", "()Z", AccessFlags = 1)]
  618. public override bool IsLoopbackAddress() /* MethodBuilder.Create */
  619. {
  620. return default(bool);
  621. }
  622. /// <summary>
  623. /// <para>Returns whether this address is a global multicast address or not.</para><para>Valid IPv6 global multicast addresses have the prefix <c> ffxe::/16 </c> , where <c> x </c> is a set of flags and the additional 112 bits make up the global multicast address space.</para><para>Valid IPv4 global multicast addresses are the range of addresses from <c> 224.0.1.0 </c> to <c> 238.255.255.255 </c> . </para>
  624. /// </summary>
  625. /// <java-name>
  626. /// isMCGlobal
  627. /// </java-name>
  628. [Dot42.DexImport("isMCGlobal", "()Z", AccessFlags = 1)]
  629. public override bool IsMCGlobal() /* MethodBuilder.Create */
  630. {
  631. return default(bool);
  632. }
  633. /// <summary>
  634. /// <para>Returns whether this address is a link-local multicast address or not.</para><para>Valid IPv6 link-local multicast addresses have the prefix <c> ffx2::/16 </c> , where x is a set of flags and the additional 112 bits make up the link-local multicast address space.</para><para>Valid IPv4 link-local multicast addresses have the prefix <c> 224.0.0/24 </c> . </para>
  635. /// </summary>
  636. /// <java-name>
  637. /// isMCLinkLocal
  638. /// </java-name>
  639. [Dot42.DexImport("isMCLinkLocal", "()Z", AccessFlags = 1)]
  640. public override bool IsMCLinkLocal() /* MethodBuilder.Create */
  641. {
  642. return default(bool);
  643. }
  644. /// <summary>
  645. /// <para>Returns whether this address is a node-local multicast address or not.</para><para>Valid IPv6 node-local multicast addresses have the prefix <c> ffx1::/16 </c> , where x is a set of flags and the additional 112 bits make up the link-local multicast address space.</para><para>There are no valid IPv4 node-local multicast addresses. </para>
  646. /// </summary>
  647. /// <java-name>
  648. /// isMCNodeLocal
  649. /// </java-name>
  650. [Dot42.DexImport("isMCNodeLocal", "()Z", AccessFlags = 1)]
  651. public override bool IsMCNodeLocal() /* MethodBuilder.Create */
  652. {
  653. return default(bool);
  654. }
  655. /// <summary>
  656. /// <para>Returns whether this address is a organization-local multicast address or not.</para><para>Valid IPv6 organization-local multicast addresses have the prefix <c> ffx8::/16 </c> , where x is a set of flags and the additional 112 bits make up the link-local multicast address space.</para><para>Valid IPv4 organization-local multicast addresses have the prefix <c> 239.192/14 </c> . </para>
  657. /// </summary>
  658. /// <java-name>
  659. /// isMCOrgLocal
  660. /// </java-name>
  661. [Dot42.DexImport("isMCOrgLocal", "()Z", AccessFlags = 1)]
  662. public override bool IsMCOrgLocal() /* MethodBuilder.Create */
  663. {
  664. return default(bool);
  665. }
  666. /// <summary>
  667. /// <para>Returns whether this address is a site-local multicast address or not.</para><para>Valid IPv6 site-local multicast addresses have the prefix <c> ffx5::/16 </c> , where x is a set of flags and the additional 112 bits make up the link-local multicast address space.</para><para>Valid IPv4 site-local multicast addresses have the prefix <c> 239.255/16 </c> . </para>
  668. /// </summary>
  669. /// <java-name>
  670. /// isMCSiteLocal
  671. /// </java-name>
  672. [Dot42.DexImport("isMCSiteLocal", "()Z", AccessFlags = 1)]
  673. public override bool IsMCSiteLocal() /* MethodBuilder.Create */
  674. {
  675. return default(bool);
  676. }
  677. /// <summary>
  678. /// <para>Returns whether this address is a multicast address or not.</para><para>Valid IPv6 multicast addresses have the prefix <c> ff::/8 </c> .</para><para>Valid IPv4 multicast addresses have the prefix <c> 224/4 </c> . </para>
  679. /// </summary>
  680. /// <java-name>
  681. /// isMulticastAddress
  682. /// </java-name>
  683. [Dot42.DexImport("isMulticastAddress", "()Z", AccessFlags = 1)]
  684. public override bool IsMulticastAddress() /* MethodBuilder.Create */
  685. {
  686. return default(bool);
  687. }
  688. /// <summary>
  689. /// <para>Returns whether this address is a site-local address or not.</para><para>For the purposes of this method, valid IPv6 site-local addresses have the deprecated prefix <c> fec0::/10 </c> from , <b>not</b> the modern prefix <c> fc00::/7 </c> from .</para><para> "Default Address Selection for Internet Protocol Version 6 (IPv6)" states that IPv4 private addresses have the prefix <c> 10/8 </c> , <c> 172.16/12 </c> , or <c> 192.168/16 </c> .</para><para></para>
  690. /// </summary>
  691. /// <returns>
  692. /// <para><c> true </c> if this instance represents a site-local address, <c> false </c> otherwise. </para>
  693. /// </returns>
  694. /// <java-name>
  695. /// isSiteLocalAddress
  696. /// </java-name>
  697. [Dot42.DexImport("isSiteLocalAddress", "()Z", AccessFlags = 1)]
  698. public override bool IsSiteLocalAddress() /* MethodBuilder.Create */
  699. {
  700. return default(bool);
  701. }
  702. }
  703. /// <summary>
  704. /// <para>Legacy security code; do not use. </para>
  705. /// </summary>
  706. /// <java-name>
  707. /// java/net/NetPermission
  708. /// </java-name>
  709. [Dot42.DexImport("java/net/NetPermission", AccessFlags = 49)]
  710. public sealed partial class NetPermission : global::Java.Security.BasicPermission
  711. /* scope: __dot42__ */
  712. {
  713. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  714. public NetPermission(string name) /* MethodBuilder.Create */
  715. {
  716. }
  717. [Dot42.DexImport("<init>", "(Ljava/lang/String;Ljava/lang/String;)V", AccessFlags = 1)]
  718. public NetPermission(string name, string actions) /* MethodBuilder.Create */
  719. {
  720. }
  721. /// <java-name>
  722. /// getActions
  723. /// </java-name>
  724. [Dot42.DexImport("getActions", "()Ljava/lang/String;", AccessFlags = 1)]
  725. public override string GetActions() /* MethodBuilder.Create */
  726. {
  727. return default(string);
  728. }
  729. /// <java-name>
  730. /// implies
  731. /// </java-name>
  732. [Dot42.DexImport("implies", "(Ljava/security/Permission;)Z", AccessFlags = 1)]
  733. public override bool Implies(global::Java.Security.Permission permission) /* MethodBuilder.Create */
  734. {
  735. return default(bool);
  736. }
  737. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  738. internal NetPermission() /* TypeBuilder.AddDefaultConstructor */
  739. {
  740. }
  741. /// <java-name>
  742. /// getActions
  743. /// </java-name>
  744. public string Actions
  745. {
  746. [Dot42.DexImport("getActions", "()Ljava/lang/String;", AccessFlags = 1)]
  747. get{ return GetActions(); }
  748. }
  749. }
  750. /// <summary>
  751. /// <para>This exception is thrown when a timeout expired on a socket <c> read </c> or <c> accept </c> operation. </para>
  752. /// </summary>
  753. /// <java-name>
  754. /// java/net/SocketTimeoutException
  755. /// </java-name>
  756. [Dot42.DexImport("java/net/SocketTimeoutException", AccessFlags = 33)]
  757. public partial class SocketTimeoutException : global::Java.Io.InterruptedIOException
  758. /* scope: __dot42__ */
  759. {
  760. /// <summary>
  761. /// <para>Constructs a new instance. </para>
  762. /// </summary>
  763. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  764. public SocketTimeoutException() /* MethodBuilder.Create */
  765. {
  766. }
  767. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  768. public SocketTimeoutException(string @string) /* MethodBuilder.Create */
  769. {
  770. }
  771. }
  772. /// <summary>
  773. /// <para>This <c> PortUnreachableException </c> will be thrown if an <c> ICMP_Port_Unreachable </c> message has been received.</para><para>Most applications <b>should not</b> catch this exception; it is more robust to catch the superclass <c> SocketException </c> . </para>
  774. /// </summary>
  775. /// <java-name>
  776. /// java/net/PortUnreachableException
  777. /// </java-name>
  778. [Dot42.DexImport("java/net/PortUnreachableException", AccessFlags = 33)]
  779. public partial class PortUnreachableException : global::Java.Net.SocketException
  780. /* scope: __dot42__ */
  781. {
  782. /// <summary>
  783. /// <para>Constructs a new instance. </para>
  784. /// </summary>
  785. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  786. public PortUnreachableException() /* MethodBuilder.Create */
  787. {
  788. }
  789. /// <summary>
  790. /// <para>Constructs a new instance with the given detail message. </para>
  791. /// </summary>
  792. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  793. public PortUnreachableException(string detailMessage) /* MethodBuilder.Create */
  794. {
  795. }
  796. }
  797. /// <summary>
  798. /// <para>The abstract class <c> URLStreamHandler </c> is the base for all classes which can handle the communication with a URL object over a particular protocol type. </para>
  799. /// </summary>
  800. /// <java-name>
  801. /// java/net/URLStreamHandler
  802. /// </java-name>
  803. [Dot42.DexImport("java/net/URLStreamHandler", AccessFlags = 1057)]
  804. public abstract partial class URLStreamHandler
  805. /* scope: __dot42__ */
  806. {
  807. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  808. public URLStreamHandler() /* MethodBuilder.Create */
  809. {
  810. }
  811. /// <summary>
  812. /// <para>Establishes a new connection to the resource specified by the URL <c> u </c> . Since different protocols also have unique ways of connecting, it must be overwritten by the subclass.</para><para></para>
  813. /// </summary>
  814. /// <returns>
  815. /// <para>the opened URLConnection to the specified resource. </para>
  816. /// </returns>
  817. /// <java-name>
  818. /// openConnection
  819. /// </java-name>
  820. [Dot42.DexImport("openConnection", "(Ljava/net/URL;)Ljava/net/URLConnection;", AccessFlags = 1028)]
  821. protected internal abstract global::Java.Net.URLConnection OpenConnection(global::Java.Net.URL u) /* MethodBuilder.Create */ ;
  822. /// <summary>
  823. /// <para>Establishes a new connection to the resource specified by the URL <c> u </c> using the given <c> proxy </c> . Since different protocols also have unique ways of connecting, it must be overwritten by the subclass.</para><para></para>
  824. /// </summary>
  825. /// <returns>
  826. /// <para>the opened URLConnection to the specified resource. </para>
  827. /// </returns>
  828. /// <java-name>
  829. /// openConnection
  830. /// </java-name>
  831. [Dot42.DexImport("openConnection", "(Ljava/net/URL;Ljava/net/Proxy;)Ljava/net/URLConnection;", AccessFlags = 4)]
  832. protected internal virtual global::Java.Net.URLConnection OpenConnection(global::Java.Net.URL u, global::Java.Net.Proxy proxy) /* MethodBuilder.Create */
  833. {
  834. return default(global::Java.Net.URLConnection);
  835. }
  836. /// <summary>
  837. /// <para>Parses the clear text URL in <c> str </c> into a URL object. URL strings generally have the following format: </para><para> </para><para>The string is parsed in HTTP format. If the protocol has a different URL format this method must be overridden.</para><para><para>toExternalForm </para><simplesectsep></simplesectsep><para>URL </para></para>
  838. /// </summary>
  839. /// <java-name>
  840. /// parseURL
  841. /// </java-name>
  842. [Dot42.DexImport("parseURL", "(Ljava/net/URL;Ljava/lang/String;II)V", AccessFlags = 4)]
  843. protected internal virtual void ParseURL(global::Java.Net.URL url, string spec, int start, int end) /* MethodBuilder.Create */
  844. {
  845. }
  846. /// <summary>
  847. /// <para>Sets the fields of the URL <c> u </c> to the values of the supplied arguments.</para><para><xrefsect><xreftitle>Deprecated</xreftitle><xrefdescription><para>use setURL(URL, String String, int, String, String, String, String, String) instead. </para></xrefdescription></xrefsect></para>
  848. /// </summary>
  849. /// <java-name>
  850. /// setURL
  851. /// </java-name>
  852. [Dot42.DexImport("setURL", "(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/" +
  853. "String;)V", AccessFlags = 4)]
  854. protected internal virtual void SetURL(global::Java.Net.URL u, string protocol, string host, int port, string file, string @ref) /* MethodBuilder.Create */
  855. {
  856. }
  857. /// <summary>
  858. /// <para>Sets the fields of the URL <c> u </c> to the values of the supplied arguments. </para>
  859. /// </summary>
  860. /// <java-name>
  861. /// setURL
  862. /// </java-name>
  863. [Dot42.DexImport("setURL", "(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/" +
  864. "String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", AccessFlags = 4)]
  865. protected internal virtual void SetURL(global::Java.Net.URL u, string protocol, string host, int port, string authority, string userInfo, string path, string query, string @ref) /* MethodBuilder.Create */
  866. {
  867. }
  868. /// <summary>
  869. /// <para>Returns the clear text representation of a given URL using HTTP format.</para><para><para>parseURL </para><simplesectsep></simplesectsep><para>URL::toExternalForm() </para></para>
  870. /// </summary>
  871. /// <returns>
  872. /// <para>the clear text representation of the specified URL. </para>
  873. /// </returns>
  874. /// <java-name>
  875. /// toExternalForm
  876. /// </java-name>
  877. [Dot42.DexImport("toExternalForm", "(Ljava/net/URL;)Ljava/lang/String;", AccessFlags = 4)]
  878. protected internal virtual string ToExternalForm(global::Java.Net.URL url) /* MethodBuilder.Create */
  879. {
  880. return default(string);
  881. }
  882. /// <summary>
  883. /// <para>Returns true if <c> a </c> and <c> b </c> have the same protocol, host, port, file, and reference. </para>
  884. /// </summary>
  885. /// <java-name>
  886. /// equals
  887. /// </java-name>
  888. [Dot42.DexImport("equals", "(Ljava/net/URL;Ljava/net/URL;)Z", AccessFlags = 4)]
  889. protected internal virtual bool Equals(global::Java.Net.URL a, global::Java.Net.URL b) /* MethodBuilder.Create */
  890. {
  891. return default(bool);
  892. }
  893. /// <summary>
  894. /// <para>Returns the default port of the protocol used by the handled URL. The default implementation always returns <c> -1 </c> . </para>
  895. /// </summary>
  896. /// <java-name>
  897. /// getDefaultPort
  898. /// </java-name>
  899. [Dot42.DexImport("getDefaultPort", "()I", AccessFlags = 4)]
  900. protected internal virtual int GetDefaultPort() /* MethodBuilder.Create */
  901. {
  902. return default(int);
  903. }
  904. /// <summary>
  905. /// <para>Returns the host address of <c> url </c> . </para>
  906. /// </summary>
  907. /// <java-name>
  908. /// getHostAddress
  909. /// </java-name>
  910. [Dot42.DexImport("getHostAddress", "(Ljava/net/URL;)Ljava/net/InetAddress;", AccessFlags = 4)]
  911. protected internal virtual global::Java.Net.InetAddress GetHostAddress(global::Java.Net.URL url) /* MethodBuilder.Create */
  912. {
  913. return default(global::Java.Net.InetAddress);
  914. }
  915. /// <summary>
  916. /// <para>Returns the hash code of <c> url </c> . </para>
  917. /// </summary>
  918. /// <java-name>
  919. /// hashCode
  920. /// </java-name>
  921. [Dot42.DexImport("hashCode", "(Ljava/net/URL;)I", AccessFlags = 4)]
  922. protected internal virtual int GetHashCode(global::Java.Net.URL url) /* MethodBuilder.Create */
  923. {
  924. return default(int);
  925. }
  926. /// <summary>
  927. /// <para>Returns true if the hosts of <c> a </c> and <c> b </c> are equal. </para>
  928. /// </summary>
  929. /// <java-name>
  930. /// hostsEqual
  931. /// </java-name>
  932. [Dot42.DexImport("hostsEqual", "(Ljava/net/URL;Ljava/net/URL;)Z", AccessFlags = 4)]
  933. protected internal virtual bool HostsEqual(global::Java.Net.URL a, global::Java.Net.URL b) /* MethodBuilder.Create */
  934. {
  935. return default(bool);
  936. }
  937. /// <summary>
  938. /// <para>Returns true if <c> a </c> and <c> b </c> have the same protocol, host, port and file. </para>
  939. /// </summary>
  940. /// <java-name>
  941. /// sameFile
  942. /// </java-name>
  943. [Dot42.DexImport("sameFile", "(Ljava/net/URL;Ljava/net/URL;)Z", AccessFlags = 4)]
  944. protected internal virtual bool SameFile(global::Java.Net.URL a, global::Java.Net.URL b) /* MethodBuilder.Create */
  945. {
  946. return default(bool);
  947. }
  948. /// <summary>
  949. /// <para>Returns the default port of the protocol used by the handled URL. The default implementation always returns <c> -1 </c> . </para>
  950. /// </summary>
  951. /// <java-name>
  952. /// getDefaultPort
  953. /// </java-name>
  954. protected internal int DefaultPort
  955. {
  956. [Dot42.DexImport("getDefaultPort", "()I", AccessFlags = 4)]
  957. get{ return GetDefaultPort(); }
  958. }
  959. }
  960. /// <summary>
  961. /// <para>This class converts the content of a certain format (i.e. a MIME type) into a Java type object. It is created by <c> ContentHandlerFactory </c> . The data values should be accessed via <c> URL </c> or <c> URLConnection </c> .</para><para><para>ContentHandlerFactory </para><simplesectsep></simplesectsep><para>URL::getContent() </para><simplesectsep></simplesectsep><para>URLConnection::getContent() </para></para>
  962. /// </summary>
  963. /// <java-name>
  964. /// java/net/ContentHandler
  965. /// </java-name>
  966. [Dot42.DexImport("java/net/ContentHandler", AccessFlags = 1057)]
  967. public abstract partial class ContentHandler
  968. /* scope: __dot42__ */
  969. {
  970. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  971. public ContentHandler() /* MethodBuilder.Create */
  972. {
  973. }
  974. /// <summary>
  975. /// <para>Returns the object pointed by the specified URL connection <c> uConn </c> .</para><para></para>
  976. /// </summary>
  977. /// <returns>
  978. /// <para>object referred by <c> uConn </c> . </para>
  979. /// </returns>
  980. /// <java-name>
  981. /// getContent
  982. /// </java-name>
  983. [Dot42.DexImport("getContent", "(Ljava/net/URLConnection;)Ljava/lang/Object;", AccessFlags = 1025)]
  984. public abstract object GetContent(global::Java.Net.URLConnection uConn) /* MethodBuilder.Create */ ;
  985. /// <summary>
  986. /// <para>Returns the object pointed by the specified URL connection <c> uConn </c> .</para><para></para>
  987. /// </summary>
  988. /// <returns>
  989. /// <para>resource object pointed by this URL or <c> null </c> if the content doesn't match one of the specified content types. </para>
  990. /// </returns>
  991. /// <java-name>
  992. /// getContent
  993. /// </java-name>
  994. [Dot42.DexImport("getContent", "(Ljava/net/URLConnection;[Ljava/lang/Class;)Ljava/lang/Object;", AccessFlags = 1)]
  995. public virtual object GetContent(global::Java.Net.URLConnection uConn, global::System.Type[] types) /* MethodBuilder.Create */
  996. {
  997. return default(object);
  998. }
  999. }
  1000. /// <summary>
  1001. /// <para>A <c> ConnectException </c> is thrown if a connection cannot be established to a remote host on a specific port.</para><para>Most applications <b>should not</b> catch this exception; it is more robust to catch the superclass <c> SocketException </c> . </para>
  1002. /// </summary>
  1003. /// <java-name>
  1004. /// java/net/ConnectException
  1005. /// </java-name>
  1006. [Dot42.DexImport("java/net/ConnectException", AccessFlags = 33)]
  1007. public partial class ConnectException : global::Java.Net.SocketException
  1008. /* scope: __dot42__ */
  1009. {
  1010. /// <summary>
  1011. /// <para>Constructs a new instance. </para>
  1012. /// </summary>
  1013. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  1014. public ConnectException() /* MethodBuilder.Create */
  1015. {
  1016. }
  1017. /// <summary>
  1018. /// <para>Constructs a new instance with the given detail message. </para>
  1019. /// </summary>
  1020. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  1021. public ConnectException(string detailMessage) /* MethodBuilder.Create */
  1022. {
  1023. }
  1024. }
  1025. /// <summary>
  1026. /// <para>The <c> NoRouteToHostException </c> will be thrown while attempting to connect to a remote host but the host cannot be reached for instance because of a badly configured router or a blocking firewall.</para><para>Most applications <b>should not</b> catch this exception; it is more robust to catch the superclass <c> SocketException </c> . </para>
  1027. /// </summary>
  1028. /// <java-name>
  1029. /// java/net/NoRouteToHostException
  1030. /// </java-name>
  1031. [Dot42.DexImport("java/net/NoRouteToHostException", AccessFlags = 33)]
  1032. public partial class NoRouteToHostException : global::Java.Net.SocketException
  1033. /* scope: __dot42__ */
  1034. {
  1035. /// <summary>
  1036. /// <para>Constructs a new instance. </para>
  1037. /// </summary>
  1038. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  1039. public NoRouteToHostException() /* MethodBuilder.Create */
  1040. {
  1041. }
  1042. /// <summary>
  1043. /// <para>Constructs a new instance with the given detail message. </para>
  1044. /// </summary>
  1045. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  1046. public NoRouteToHostException(string detailMessage) /* MethodBuilder.Create */
  1047. {
  1048. }
  1049. }
  1050. /// <summary>
  1051. /// <para>Selects the proxy server to use, if any, when connecting to a given URL.</para><para><h3>System Properties</h3></para><para>The default proxy selector is configured by system properties.</para><para><table><row><entry><para>Hostname patterns </para></entry></row><row><entry><para>URL scheme</para></entry><entry><para>property name</para></entry><entry><para>description</para></entry><entry><para>default </para></entry></row><row><entry><para>ftp</para></entry><entry><para>ftp.nonProxyHosts</para></entry><entry><para>Hostname pattern for FTP servers to connect to directly (without a proxy).</para></entry><entry><para></para></entry></row><row><entry><para>http</para></entry><entry><para>http.nonProxyHosts</para></entry><entry><para>Hostname pattern for HTTP servers to connect to directly (without a proxy).</para></entry><entry><para></para></entry></row><row><entry><para>https</para></entry><entry><para>https.nonProxyHosts</para></entry><entry><para>Hostname pattern for HTTPS servers to connect to directly (without a proxy).</para></entry><entry><para></para></entry></row><row><entry><para><br></br></para><para></para></entry></row><row><entry><para>Proxy.Type::HTTP HTTP Proxies} </para></entry></row><row><entry><para>URL scheme</para></entry><entry><para>property name</para></entry><entry><para>description</para></entry><entry><para>default </para></entry></row><row><entry><para>ftp</para></entry><entry><para>ftp.proxyHost</para></entry><entry><para>Hostname of the HTTP proxy server used for FTP requests.</para></entry><entry><para></para></entry></row><row><entry><para>ftp.proxyPort</para></entry><entry><para>Port number of the HTTP proxy server used for FTP requests.</para></entry><entry><para>80 </para></entry></row><row><entry><para>http</para></entry><entry><para>http.proxyHost</para></entry><entry><para>Hostname of the HTTP proxy server used for HTTP requests.</para></entry><entry><para></para></entry></row><row><entry><para>http.proxyPort</para></entry><entry><para>Port number of the HTTP proxy server used for HTTP requests.</para></entry><entry><para>80 </para></entry></row><row><entry><para>https</para></entry><entry><para>https.proxyHost</para></entry><entry><para>Hostname of the HTTP proxy server used for HTTPS requests.</para></entry><entry><para></para></entry></row><row><entry><para>https.proxyPort</para></entry><entry><para>Port number of the HTTP proxy server used for HTTPS requests.</para></entry><entry><para>443 </para></entry></row><row><entry><para>ftp, http or https</para></entry><entry><para>proxyHost</para></entry><entry><para>Hostname of the HTTP proxy server used for FTP, HTTP and HTTPS requests.</para></entry><entry><para></para></entry></row><row><entry><para>proxyPort</para></entry><entry><para>Port number of the HTTP proxy server.</para></entry><entry><para>80 for FTP and HTTP <br></br>443 for HTTPS </para></entry></row><row><entry><p