/Generated/v2.3.3/Java.Net.cs

https://gitlab.com/Pfhoenix/api · C# · 1215 lines · 453 code · 93 blank · 669 comment · 0 complexity · b3190f7cdc601a4f07ce03f715a67a2a 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 represents a datagram packet which contains data either to be sent or received through a <c> DatagramSocket </c> . It holds additional information such as its source or destination host.</para><para><para>DatagramSocket </para></para>
  21. /// </summary>
  22. /// <java-name>
  23. /// java/net/DatagramPacket
  24. /// </java-name>
  25. [Dot42.DexImport("java/net/DatagramPacket", AccessFlags = 49)]
  26. public sealed partial class DatagramPacket
  27. /* scope: __dot42__ */
  28. {
  29. /// <summary>
  30. /// <para>Constructs a new <c> DatagramPacket </c> object to receive data up to <c> length </c> bytes.</para><para></para>
  31. /// </summary>
  32. [Dot42.DexImport("<init>", "([BI)V", AccessFlags = 1)]
  33. public DatagramPacket(sbyte[] data, int length) /* MethodBuilder.Create */
  34. {
  35. }
  36. /// <summary>
  37. /// <para>Constructs a new <c> DatagramPacket </c> object to receive data up to <c> length </c> bytes.</para><para></para>
  38. /// </summary>
  39. [Dot42.DexImport("<init>", "([BI)V", AccessFlags = 1, IgnoreFromJava = true)]
  40. public DatagramPacket(byte[] data, int length) /* MethodBuilder.Create */
  41. {
  42. }
  43. [Dot42.DexImport("<init>", "([BII)V", AccessFlags = 1)]
  44. public DatagramPacket(sbyte[] sByte, int int32, int int321) /* MethodBuilder.Create */
  45. {
  46. }
  47. [Dot42.DexImport("<init>", "([BII)V", AccessFlags = 1, IgnoreFromJava = true)]
  48. public DatagramPacket(byte[] @byte, int int32, int int321) /* MethodBuilder.Create */
  49. {
  50. }
  51. /// <summary>
  52. /// <para>Constructs a new <c> DatagramPacket </c> object to send data to the port <c> aPort </c> of the address <c> host </c> . The <c> length </c> must be lesser than or equal to the size of <c> data </c> . The first <c> length </c> bytes from the byte array position <c> offset </c> are sent.</para><para></para>
  53. /// </summary>
  54. [Dot42.DexImport("<init>", "([BIILjava/net/InetAddress;I)V", AccessFlags = 1)]
  55. public DatagramPacket(sbyte[] data, int offset, int length, global::Java.Net.InetAddress host, int aPort) /* MethodBuilder.Create */
  56. {
  57. }
  58. /// <summary>
  59. /// <para>Constructs a new <c> DatagramPacket </c> object to send data to the port <c> aPort </c> of the address <c> host </c> . The <c> length </c> must be lesser than or equal to the size of <c> data </c> . The first <c> length </c> bytes from the byte array position <c> offset </c> are sent.</para><para></para>
  60. /// </summary>
  61. [Dot42.DexImport("<init>", "([BIILjava/net/InetAddress;I)V", AccessFlags = 1, IgnoreFromJava = true)]
  62. public DatagramPacket(byte[] data, int offset, int length, global::Java.Net.InetAddress host, int aPort) /* MethodBuilder.Create */
  63. {
  64. }
  65. [Dot42.DexImport("<init>", "([BILjava/net/InetAddress;I)V", AccessFlags = 1)]
  66. public DatagramPacket(sbyte[] sByte, int int32, global::Java.Net.InetAddress inetAddress, int int321) /* MethodBuilder.Create */
  67. {
  68. }
  69. [Dot42.DexImport("<init>", "([BILjava/net/InetAddress;I)V", AccessFlags = 1, IgnoreFromJava = true)]
  70. public DatagramPacket(byte[] @byte, int int32, global::Java.Net.InetAddress inetAddress, int int321) /* MethodBuilder.Create */
  71. {
  72. }
  73. [Dot42.DexImport("<init>", "([BILjava/net/SocketAddress;)V", AccessFlags = 1)]
  74. public DatagramPacket(sbyte[] sByte, int int32, global::Java.Net.SocketAddress socketAddress) /* MethodBuilder.Create */
  75. {
  76. }
  77. [Dot42.DexImport("<init>", "([BILjava/net/SocketAddress;)V", AccessFlags = 1, IgnoreFromJava = true)]
  78. public DatagramPacket(byte[] @byte, int int32, global::Java.Net.SocketAddress socketAddress) /* MethodBuilder.Create */
  79. {
  80. }
  81. [Dot42.DexImport("<init>", "([BIILjava/net/SocketAddress;)V", AccessFlags = 1)]
  82. public DatagramPacket(sbyte[] sByte, int int32, int int321, global::Java.Net.SocketAddress socketAddress) /* MethodBuilder.Create */
  83. {
  84. }
  85. [Dot42.DexImport("<init>", "([BIILjava/net/SocketAddress;)V", AccessFlags = 1, IgnoreFromJava = true)]
  86. public DatagramPacket(byte[] @byte, int int32, int int321, global::Java.Net.SocketAddress socketAddress) /* MethodBuilder.Create */
  87. {
  88. }
  89. /// <summary>
  90. /// <para>Gets the sender or destination IP address of this datagram packet.</para><para></para>
  91. /// </summary>
  92. /// <returns>
  93. /// <para>the address from where the datagram was received or to which it is sent. </para>
  94. /// </returns>
  95. /// <java-name>
  96. /// getAddress
  97. /// </java-name>
  98. [Dot42.DexImport("getAddress", "()Ljava/net/InetAddress;", AccessFlags = 33)]
  99. public global::Java.Net.InetAddress GetAddress() /* MethodBuilder.Create */
  100. {
  101. return default(global::Java.Net.InetAddress);
  102. }
  103. /// <summary>
  104. /// <para>Gets the data of this datagram packet.</para><para></para>
  105. /// </summary>
  106. /// <returns>
  107. /// <para>the received data or the data to be sent. </para>
  108. /// </returns>
  109. /// <java-name>
  110. /// getData
  111. /// </java-name>
  112. [Dot42.DexImport("getData", "()[B", AccessFlags = 33)]
  113. public sbyte[] JavaGetData() /* MethodBuilder.Create */
  114. {
  115. return default(sbyte[]);
  116. }
  117. /// <summary>
  118. /// <para>Gets the data of this datagram packet.</para><para></para>
  119. /// </summary>
  120. /// <returns>
  121. /// <para>the received data or the data to be sent. </para>
  122. /// </returns>
  123. /// <java-name>
  124. /// getData
  125. /// </java-name>
  126. [Dot42.DexImport("getData", "()[B", AccessFlags = 33, IgnoreFromJava = true)]
  127. public byte[] GetData() /* MethodBuilder.Create */
  128. {
  129. return default(byte[]);
  130. }
  131. /// <summary>
  132. /// <para>Gets the length of the data stored in this datagram packet.</para><para></para>
  133. /// </summary>
  134. /// <returns>
  135. /// <para>the length of the received data or the data to be sent. </para>
  136. /// </returns>
  137. /// <java-name>
  138. /// getLength
  139. /// </java-name>
  140. [Dot42.DexImport("getLength", "()I", AccessFlags = 33)]
  141. public int GetLength() /* MethodBuilder.Create */
  142. {
  143. return default(int);
  144. }
  145. /// <summary>
  146. /// <para>Gets the offset of the data stored in this datagram packet.</para><para></para>
  147. /// </summary>
  148. /// <returns>
  149. /// <para>the position of the received data or the data to be sent. </para>
  150. /// </returns>
  151. /// <java-name>
  152. /// getOffset
  153. /// </java-name>
  154. [Dot42.DexImport("getOffset", "()I", AccessFlags = 33)]
  155. public int GetOffset() /* MethodBuilder.Create */
  156. {
  157. return default(int);
  158. }
  159. /// <summary>
  160. /// <para>Gets the port number of the target or sender host of this datagram packet.</para><para></para>
  161. /// </summary>
  162. /// <returns>
  163. /// <para>the port number of the origin or target host. </para>
  164. /// </returns>
  165. /// <java-name>
  166. /// getPort
  167. /// </java-name>
  168. [Dot42.DexImport("getPort", "()I", AccessFlags = 33)]
  169. public int GetPort() /* MethodBuilder.Create */
  170. {
  171. return default(int);
  172. }
  173. /// <summary>
  174. /// <para>Sets the IP address of the target host.</para><para></para>
  175. /// </summary>
  176. /// <java-name>
  177. /// setAddress
  178. /// </java-name>
  179. [Dot42.DexImport("setAddress", "(Ljava/net/InetAddress;)V", AccessFlags = 33)]
  180. public void SetAddress(global::Java.Net.InetAddress addr) /* MethodBuilder.Create */
  181. {
  182. }
  183. /// <summary>
  184. /// <para>Sets the data buffer for this datagram packet. </para>
  185. /// </summary>
  186. /// <java-name>
  187. /// setData
  188. /// </java-name>
  189. [Dot42.DexImport("setData", "([BII)V", AccessFlags = 33)]
  190. public void SetData(sbyte[] data, int offset, int byteCount) /* MethodBuilder.Create */
  191. {
  192. }
  193. /// <summary>
  194. /// <para>Sets the data buffer for this datagram packet. </para>
  195. /// </summary>
  196. /// <java-name>
  197. /// setData
  198. /// </java-name>
  199. [Dot42.DexImport("setData", "([BII)V", AccessFlags = 33, IgnoreFromJava = true)]
  200. public void SetData(byte[] data, int offset, int byteCount) /* MethodBuilder.Create */
  201. {
  202. }
  203. /// <summary>
  204. /// <para>Sets the data buffer for this datagram packet. The length of the datagram packet is set to the buffer length.</para><para></para>
  205. /// </summary>
  206. /// <java-name>
  207. /// setData
  208. /// </java-name>
  209. [Dot42.DexImport("setData", "([B)V", AccessFlags = 33)]
  210. public void SetData(sbyte[] buf) /* MethodBuilder.Create */
  211. {
  212. }
  213. /// <summary>
  214. /// <para>Sets the data buffer for this datagram packet. The length of the datagram packet is set to the buffer length.</para><para></para>
  215. /// </summary>
  216. /// <java-name>
  217. /// setData
  218. /// </java-name>
  219. [Dot42.DexImport("setData", "([B)V", AccessFlags = 33, IgnoreFromJava = true)]
  220. public void SetData(byte[] buf) /* MethodBuilder.Create */
  221. {
  222. }
  223. /// <summary>
  224. /// <para>Sets the length of the datagram packet. This length plus the offset must be lesser than or equal to the buffer size.</para><para></para>
  225. /// </summary>
  226. /// <java-name>
  227. /// setLength
  228. /// </java-name>
  229. [Dot42.DexImport("setLength", "(I)V", AccessFlags = 33)]
  230. public void SetLength(int length) /* MethodBuilder.Create */
  231. {
  232. }
  233. /// <summary>
  234. /// <para>Sets the port number of the target host of this datagram packet.</para><para></para>
  235. /// </summary>
  236. /// <java-name>
  237. /// setPort
  238. /// </java-name>
  239. [Dot42.DexImport("setPort", "(I)V", AccessFlags = 33)]
  240. public void SetPort(int aPort) /* MethodBuilder.Create */
  241. {
  242. }
  243. /// <summary>
  244. /// <para>Gets the host address and the port to which this datagram packet is sent as a <c> SocketAddress </c> object.</para><para></para>
  245. /// </summary>
  246. /// <returns>
  247. /// <para>the SocketAddress of the target host. </para>
  248. /// </returns>
  249. /// <java-name>
  250. /// getSocketAddress
  251. /// </java-name>
  252. [Dot42.DexImport("getSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 33)]
  253. public global::Java.Net.SocketAddress GetSocketAddress() /* MethodBuilder.Create */
  254. {
  255. return default(global::Java.Net.SocketAddress);
  256. }
  257. /// <summary>
  258. /// <para>Sets the <c> SocketAddress </c> for this datagram packet.</para><para></para>
  259. /// </summary>
  260. /// <java-name>
  261. /// setSocketAddress
  262. /// </java-name>
  263. [Dot42.DexImport("setSocketAddress", "(Ljava/net/SocketAddress;)V", AccessFlags = 33)]
  264. public void SetSocketAddress(global::Java.Net.SocketAddress sockAddr) /* MethodBuilder.Create */
  265. {
  266. }
  267. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  268. internal DatagramPacket() /* TypeBuilder.AddDefaultConstructor */
  269. {
  270. }
  271. /// <summary>
  272. /// <para>Gets the sender or destination IP address of this datagram packet.</para><para></para>
  273. /// </summary>
  274. /// <returns>
  275. /// <para>the address from where the datagram was received or to which it is sent. </para>
  276. /// </returns>
  277. /// <java-name>
  278. /// getAddress
  279. /// </java-name>
  280. public global::Java.Net.InetAddress Address
  281. {
  282. [Dot42.DexImport("getAddress", "()Ljava/net/InetAddress;", AccessFlags = 33)]
  283. get{ return GetAddress(); }
  284. [Dot42.DexImport("setAddress", "(Ljava/net/InetAddress;)V", AccessFlags = 33)]
  285. set{ SetAddress(value); }
  286. }
  287. /// <summary>
  288. /// <para>Gets the data of this datagram packet.</para><para></para>
  289. /// </summary>
  290. /// <returns>
  291. /// <para>the received data or the data to be sent. </para>
  292. /// </returns>
  293. /// <java-name>
  294. /// getData
  295. /// </java-name>
  296. public byte[] Data
  297. {
  298. [Dot42.DexImport("getData", "()[B", AccessFlags = 33, IgnoreFromJava = true)]
  299. get{ return GetData(); }
  300. [Dot42.DexImport("setData", "([B)V", AccessFlags = 33, IgnoreFromJava = true)]
  301. set{ SetData(value); }
  302. }
  303. /// <summary>
  304. /// <para>Gets the length of the data stored in this datagram packet.</para><para></para>
  305. /// </summary>
  306. /// <returns>
  307. /// <para>the length of the received data or the data to be sent. </para>
  308. /// </returns>
  309. /// <java-name>
  310. /// getLength
  311. /// </java-name>
  312. public int Length
  313. {
  314. [Dot42.DexImport("getLength", "()I", AccessFlags = 33)]
  315. get{ return GetLength(); }
  316. [Dot42.DexImport("setLength", "(I)V", AccessFlags = 33)]
  317. set{ SetLength(value); }
  318. }
  319. /// <summary>
  320. /// <para>Gets the offset of the data stored in this datagram packet.</para><para></para>
  321. /// </summary>
  322. /// <returns>
  323. /// <para>the position of the received data or the data to be sent. </para>
  324. /// </returns>
  325. /// <java-name>
  326. /// getOffset
  327. /// </java-name>
  328. public int Offset
  329. {
  330. [Dot42.DexImport("getOffset", "()I", AccessFlags = 33)]
  331. get{ return GetOffset(); }
  332. }
  333. /// <summary>
  334. /// <para>Gets the port number of the target or sender host of this datagram packet.</para><para></para>
  335. /// </summary>
  336. /// <returns>
  337. /// <para>the port number of the origin or target host. </para>
  338. /// </returns>
  339. /// <java-name>
  340. /// getPort
  341. /// </java-name>
  342. public int Port
  343. {
  344. [Dot42.DexImport("getPort", "()I", AccessFlags = 33)]
  345. get{ return GetPort(); }
  346. [Dot42.DexImport("setPort", "(I)V", AccessFlags = 33)]
  347. set{ SetPort(value); }
  348. }
  349. /// <summary>
  350. /// <para>Gets the host address and the port to which this datagram packet is sent as a <c> SocketAddress </c> object.</para><para></para>
  351. /// </summary>
  352. /// <returns>
  353. /// <para>the SocketAddress of the target host. </para>
  354. /// </returns>
  355. /// <java-name>
  356. /// getSocketAddress
  357. /// </java-name>
  358. public global::Java.Net.SocketAddress SocketAddress
  359. {
  360. [Dot42.DexImport("getSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 33)]
  361. get{ return GetSocketAddress(); }
  362. [Dot42.DexImport("setSocketAddress", "(Ljava/net/SocketAddress;)V", AccessFlags = 33)]
  363. set{ SetSocketAddress(value); }
  364. }
  365. }
  366. /// <summary>
  367. /// <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>
  368. /// </summary>
  369. /// <java-name>
  370. /// java/net/PortUnreachableException
  371. /// </java-name>
  372. [Dot42.DexImport("java/net/PortUnreachableException", AccessFlags = 33)]
  373. public partial class PortUnreachableException : global::Java.Net.SocketException
  374. /* scope: __dot42__ */
  375. {
  376. /// <summary>
  377. /// <para>Constructs a new instance. </para>
  378. /// </summary>
  379. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  380. public PortUnreachableException() /* MethodBuilder.Create */
  381. {
  382. }
  383. /// <summary>
  384. /// <para>Constructs a new instance with the given detail message. </para>
  385. /// </summary>
  386. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  387. public PortUnreachableException(string detailMessage) /* MethodBuilder.Create */
  388. {
  389. }
  390. }
  391. /// <summary>
  392. /// <para>A response cache entry. A <c> CacheResponse </c> object provides an <c> InputStream </c> to access the response body and a <c> Map </c> for the response headers. <para>ResponseCache </para></para>
  393. /// </summary>
  394. /// <java-name>
  395. /// java/net/CacheResponse
  396. /// </java-name>
  397. [Dot42.DexImport("java/net/CacheResponse", AccessFlags = 1057)]
  398. public abstract partial class CacheResponse
  399. /* scope: __dot42__ */
  400. {
  401. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  402. public CacheResponse() /* MethodBuilder.Create */
  403. {
  404. }
  405. /// <summary>
  406. /// <para>Returns an <c> InputStream </c> to access the response body.</para><para></para>
  407. /// </summary>
  408. /// <returns>
  409. /// <para>an <c> InputStream </c> which can be used to fetch the response body. </para>
  410. /// </returns>
  411. /// <java-name>
  412. /// getBody
  413. /// </java-name>
  414. [Dot42.DexImport("getBody", "()Ljava/io/InputStream;", AccessFlags = 1025)]
  415. public abstract global::Java.Io.InputStream GetBody() /* MethodBuilder.Create */ ;
  416. /// <summary>
  417. /// <para>Returns an immutable <c> Map </c> which contains the response headers information. Note that <c> URLConnection </c> may need the original headers to be able to fully reconstruct the response. In particular, failure to provide a mapping from null to the original HTTP status line will prevent an <c> HttpURLConnection </c> from returning the correct response code. See URLConnection#getHeaderFields.</para><para></para>
  418. /// </summary>
  419. /// <returns>
  420. /// <para>an immutable <c> Map </c> which contains the response headers. </para>
  421. /// </returns>
  422. /// <java-name>
  423. /// getHeaders
  424. /// </java-name>
  425. [Dot42.DexImport("getHeaders", "()Ljava/util/Map;", AccessFlags = 1025, Signature = "()Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;")]
  426. public abstract global::Java.Util.IMap<string, global::Java.Util.IList<string>> GetHeaders() /* MethodBuilder.Create */ ;
  427. /// <summary>
  428. /// <para>Returns an <c> InputStream </c> to access the response body.</para><para></para>
  429. /// </summary>
  430. /// <returns>
  431. /// <para>an <c> InputStream </c> which can be used to fetch the response body. </para>
  432. /// </returns>
  433. /// <java-name>
  434. /// getBody
  435. /// </java-name>
  436. public global::Java.Io.InputStream Body
  437. {
  438. [Dot42.DexImport("getBody", "()Ljava/io/InputStream;", AccessFlags = 1025)]
  439. get{ return GetBody(); }
  440. }
  441. /// <summary>
  442. /// <para>Returns an immutable <c> Map </c> which contains the response headers information. Note that <c> URLConnection </c> may need the original headers to be able to fully reconstruct the response. In particular, failure to provide a mapping from null to the original HTTP status line will prevent an <c> HttpURLConnection </c> from returning the correct response code. See URLConnection#getHeaderFields.</para><para></para>
  443. /// </summary>
  444. /// <returns>
  445. /// <para>an immutable <c> Map </c> which contains the response headers. </para>
  446. /// </returns>
  447. /// <java-name>
  448. /// getHeaders
  449. /// </java-name>
  450. public global::Java.Util.IMap<string, global::Java.Util.IList<string>> Headers
  451. {
  452. [Dot42.DexImport("getHeaders", "()Ljava/util/Map;", AccessFlags = 1025, Signature = "()Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;")]
  453. get{ return GetHeaders(); }
  454. }
  455. }
  456. /// <summary>
  457. /// <para>This class is used to represent a network interface of the local device. An interface is defined by its address and a platform dependent name. The class provides methods to get all information about the available interfaces of the system or to identify the local interface of a joined multicast group. </para>
  458. /// </summary>
  459. /// <java-name>
  460. /// java/net/NetworkInterface
  461. /// </java-name>
  462. [Dot42.DexImport("java/net/NetworkInterface", AccessFlags = 49)]
  463. public sealed partial class NetworkInterface
  464. /* scope: __dot42__ */
  465. {
  466. [Dot42.DexImport("<init>", "()V", AccessFlags = 0)]
  467. internal NetworkInterface() /* MethodBuilder.Create */
  468. {
  469. }
  470. /// <summary>
  471. /// <para>Returns the name of this network interface (such as "eth0" or "lo"). </para>
  472. /// </summary>
  473. /// <java-name>
  474. /// getName
  475. /// </java-name>
  476. [Dot42.DexImport("getName", "()Ljava/lang/String;", AccessFlags = 1)]
  477. public string GetName() /* MethodBuilder.Create */
  478. {
  479. return default(string);
  480. }
  481. /// <summary>
  482. /// <para>Returns an enumeration of the addresses bound to this network interface. </para>
  483. /// </summary>
  484. /// <java-name>
  485. /// getInetAddresses
  486. /// </java-name>
  487. [Dot42.DexImport("getInetAddresses", "()Ljava/util/Enumeration;", AccessFlags = 1, Signature = "()Ljava/util/Enumeration<Ljava/net/InetAddress;>;")]
  488. public global::Java.Util.IEnumeration<global::Java.Net.InetAddress> GetInetAddresses() /* MethodBuilder.Create */
  489. {
  490. return default(global::Java.Util.IEnumeration<global::Java.Net.InetAddress>);
  491. }
  492. /// <summary>
  493. /// <para>Returns a human-readable name for this network interface. On Android, this is the same string as returned by getName. </para>
  494. /// </summary>
  495. /// <java-name>
  496. /// getDisplayName
  497. /// </java-name>
  498. [Dot42.DexImport("getDisplayName", "()Ljava/lang/String;", AccessFlags = 1)]
  499. public string GetDisplayName() /* MethodBuilder.Create */
  500. {
  501. return default(string);
  502. }
  503. /// <summary>
  504. /// <para>Returns the <c> NetworkInterface </c> corresponding to the named network interface, or null if no interface has this name.</para><para></para>
  505. /// </summary>
  506. /// <java-name>
  507. /// getByName
  508. /// </java-name>
  509. [Dot42.DexImport("getByName", "(Ljava/lang/String;)Ljava/net/NetworkInterface;", AccessFlags = 9)]
  510. public static global::Java.Net.NetworkInterface GetByName(string interfaceName) /* MethodBuilder.Create */
  511. {
  512. return default(global::Java.Net.NetworkInterface);
  513. }
  514. /// <summary>
  515. /// <para>Returns the <c> NetworkInterface </c> corresponding to the given address, or null if no interface has this address.</para><para></para>
  516. /// </summary>
  517. /// <java-name>
  518. /// getByInetAddress
  519. /// </java-name>
  520. [Dot42.DexImport("getByInetAddress", "(Ljava/net/InetAddress;)Ljava/net/NetworkInterface;", AccessFlags = 9)]
  521. public static global::Java.Net.NetworkInterface GetByInetAddress(global::Java.Net.InetAddress address) /* MethodBuilder.Create */
  522. {
  523. return default(global::Java.Net.NetworkInterface);
  524. }
  525. /// <summary>
  526. /// <para>Gets a list of all network interfaces available on the local system or <c> null </c> if no interface is available.</para><para></para>
  527. /// </summary>
  528. /// <returns>
  529. /// <para>the list of <c> NetworkInterface </c> instances representing the available interfaces. </para>
  530. /// </returns>
  531. /// <java-name>
  532. /// getNetworkInterfaces
  533. /// </java-name>
  534. [Dot42.DexImport("getNetworkInterfaces", "()Ljava/util/Enumeration;", AccessFlags = 9, Signature = "()Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;")]
  535. public static global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface> GetNetworkInterfaces() /* MethodBuilder.Create */
  536. {
  537. return default(global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface>);
  538. }
  539. /// <summary>
  540. /// <para>Compares the specified object to this <c> NetworkInterface </c> and returns whether they are equal or not. The object must be an instance of <c> NetworkInterface </c> with the same name, display name, and list of interface addresses.</para><para><para>hashCode() </para></para>
  541. /// </summary>
  542. /// <returns>
  543. /// <para><c> true </c> if the specified object is equal to this <c> NetworkInterface </c> , <c> false </c> otherwise. </para>
  544. /// </returns>
  545. /// <java-name>
  546. /// equals
  547. /// </java-name>
  548. [Dot42.DexImport("equals", "(Ljava/lang/Object;)Z", AccessFlags = 1)]
  549. public override bool Equals(object obj) /* MethodBuilder.Create */
  550. {
  551. return default(bool);
  552. }
  553. /// <summary>
  554. /// <para>Returns the hash code for this <c> NetworkInterface </c> . Since the name should be unique for each network interface the hash code is generated using the name. </para>
  555. /// </summary>
  556. /// <java-name>
  557. /// hashCode
  558. /// </java-name>
  559. [Dot42.DexImport("hashCode", "()I", AccessFlags = 1)]
  560. public override int GetHashCode() /* MethodBuilder.Create */
  561. {
  562. return default(int);
  563. }
  564. /// <summary>
  565. /// <para>Returns a string containing details of this network interface. The exact format is deliberately unspecified. Callers that require a specific format should build a string themselves, using this class' accessor methods. </para>
  566. /// </summary>
  567. /// <java-name>
  568. /// toString
  569. /// </java-name>
  570. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  571. public override string ToString() /* MethodBuilder.Create */
  572. {
  573. return default(string);
  574. }
  575. /// <summary>
  576. /// <para>Returns a List of the InterfaceAddresses for this network interface. <para>1.6 </para></para>
  577. /// </summary>
  578. /// <java-name>
  579. /// getInterfaceAddresses
  580. /// </java-name>
  581. [Dot42.DexImport("getInterfaceAddresses", "()Ljava/util/List;", AccessFlags = 1, Signature = "()Ljava/util/List<Ljava/net/InterfaceAddress;>;")]
  582. public global::Java.Util.IList<global::Java.Net.InterfaceAddress> GetInterfaceAddresses() /* MethodBuilder.Create */
  583. {
  584. return default(global::Java.Util.IList<global::Java.Net.InterfaceAddress>);
  585. }
  586. /// <summary>
  587. /// <para>Returns an enumeration of all the sub-interfaces of this network interface. Sub-interfaces are also known as virtual interfaces.</para><para>For example, <c> eth0:1 </c> would be a sub-interface of <c> eth0 </c> .</para><para><para>1.6 </para></para>
  588. /// </summary>
  589. /// <returns>
  590. /// <para>an Enumeration of all the sub-interfaces of this network interface </para>
  591. /// </returns>
  592. /// <java-name>
  593. /// getSubInterfaces
  594. /// </java-name>
  595. [Dot42.DexImport("getSubInterfaces", "()Ljava/util/Enumeration;", AccessFlags = 1, Signature = "()Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;")]
  596. public global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface> GetSubInterfaces() /* MethodBuilder.Create */
  597. {
  598. return default(global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface>);
  599. }
  600. /// <summary>
  601. /// <para>Returns the parent NetworkInterface of this interface if this is a sub-interface, or null if it's a physical (non virtual) interface.</para><para><para>1.6 </para></para>
  602. /// </summary>
  603. /// <returns>
  604. /// <para>the NetworkInterface this interface is attached to. </para>
  605. /// </returns>
  606. /// <java-name>
  607. /// getParent
  608. /// </java-name>
  609. [Dot42.DexImport("getParent", "()Ljava/net/NetworkInterface;", AccessFlags = 1)]
  610. public global::Java.Net.NetworkInterface GetParent() /* MethodBuilder.Create */
  611. {
  612. return default(global::Java.Net.NetworkInterface);
  613. }
  614. /// <summary>
  615. /// <para>Returns true if this network interface is up.</para><para><para>1.6 </para></para>
  616. /// </summary>
  617. /// <returns>
  618. /// <para>true if the interface is up. </para>
  619. /// </returns>
  620. /// <java-name>
  621. /// isUp
  622. /// </java-name>
  623. [Dot42.DexImport("isUp", "()Z", AccessFlags = 1)]
  624. public bool IsUp() /* MethodBuilder.Create */
  625. {
  626. return default(bool);
  627. }
  628. /// <summary>
  629. /// <para>Returns true if this network interface is a loopback interface.</para><para><para>1.6 </para></para>
  630. /// </summary>
  631. /// <returns>
  632. /// <para>true if the interface is a loopback interface. </para>
  633. /// </returns>
  634. /// <java-name>
  635. /// isLoopback
  636. /// </java-name>
  637. [Dot42.DexImport("isLoopback", "()Z", AccessFlags = 1)]
  638. public bool IsLoopback() /* MethodBuilder.Create */
  639. {
  640. return default(bool);
  641. }
  642. /// <summary>
  643. /// <para>Returns true if this network interface is a point-to-point interface. (For example, a PPP connection using a modem.)</para><para><para>1.6 </para></para>
  644. /// </summary>
  645. /// <returns>
  646. /// <para>true if the interface is point-to-point. </para>
  647. /// </returns>
  648. /// <java-name>
  649. /// isPointToPoint
  650. /// </java-name>
  651. [Dot42.DexImport("isPointToPoint", "()Z", AccessFlags = 1)]
  652. public bool IsPointToPoint() /* MethodBuilder.Create */
  653. {
  654. return default(bool);
  655. }
  656. /// <summary>
  657. /// <para>Returns true if this network interface supports multicast.</para><para><para>1.6 </para></para>
  658. /// </summary>
  659. /// <java-name>
  660. /// supportsMulticast
  661. /// </java-name>
  662. [Dot42.DexImport("supportsMulticast", "()Z", AccessFlags = 1)]
  663. public bool SupportsMulticast() /* MethodBuilder.Create */
  664. {
  665. return default(bool);
  666. }
  667. /// <summary>
  668. /// <para>Returns the hardware address of the interface, if it has one, or null otherwise.</para><para><para>1.6 </para></para>
  669. /// </summary>
  670. /// <java-name>
  671. /// getHardwareAddress
  672. /// </java-name>
  673. [Dot42.DexImport("getHardwareAddress", "()[B", AccessFlags = 1)]
  674. public sbyte[] JavaGetHardwareAddress() /* MethodBuilder.Create */
  675. {
  676. return default(sbyte[]);
  677. }
  678. /// <summary>
  679. /// <para>Returns the hardware address of the interface, if it has one, or null otherwise.</para><para><para>1.6 </para></para>
  680. /// </summary>
  681. /// <java-name>
  682. /// getHardwareAddress
  683. /// </java-name>
  684. [Dot42.DexImport("getHardwareAddress", "()[B", AccessFlags = 1, IgnoreFromJava = true)]
  685. public byte[] GetHardwareAddress() /* MethodBuilder.Create */
  686. {
  687. return default(byte[]);
  688. }
  689. /// <summary>
  690. /// <para>Returns the Maximum Transmission Unit (MTU) of this interface.</para><para><para>1.6 </para></para>
  691. /// </summary>
  692. /// <returns>
  693. /// <para>the value of the MTU for the interface. </para>
  694. /// </returns>
  695. /// <java-name>
  696. /// getMTU
  697. /// </java-name>
  698. [Dot42.DexImport("getMTU", "()I", AccessFlags = 1)]
  699. public int GetMTU() /* MethodBuilder.Create */
  700. {
  701. return default(int);
  702. }
  703. /// <summary>
  704. /// <para>Returns true if this interface is a virtual interface (also called a sub-interface). Virtual interfaces are, on some systems, interfaces created as a child of a physical interface and given different settings (like address or MTU). Usually the name of the interface will the name of the parent followed by a colon (:) and a number identifying the child, since there can be several virtual interfaces attached to a single physical interface.</para><para><para>1.6 </para></para>
  705. /// </summary>
  706. /// <returns>
  707. /// <para>true if this interface is a virtual interface. </para>
  708. /// </returns>
  709. /// <java-name>
  710. /// isVirtual
  711. /// </java-name>
  712. [Dot42.DexImport("isVirtual", "()Z", AccessFlags = 1)]
  713. public bool IsVirtual() /* MethodBuilder.Create */
  714. {
  715. return default(bool);
  716. }
  717. /// <summary>
  718. /// <para>Returns the name of this network interface (such as "eth0" or "lo"). </para>
  719. /// </summary>
  720. /// <java-name>
  721. /// getName
  722. /// </java-name>
  723. public string Name
  724. {
  725. [Dot42.DexImport("getName", "()Ljava/lang/String;", AccessFlags = 1)]
  726. get{ return GetName(); }
  727. }
  728. /// <summary>
  729. /// <para>Returns an enumeration of the addresses bound to this network interface. </para>
  730. /// </summary>
  731. /// <java-name>
  732. /// getInetAddresses
  733. /// </java-name>
  734. public global::Java.Util.IEnumeration<global::Java.Net.InetAddress> InetAddresses
  735. {
  736. [Dot42.DexImport("getInetAddresses", "()Ljava/util/Enumeration;", AccessFlags = 1, Signature = "()Ljava/util/Enumeration<Ljava/net/InetAddress;>;")]
  737. get{ return GetInetAddresses(); }
  738. }
  739. /// <summary>
  740. /// <para>Returns a human-readable name for this network interface. On Android, this is the same string as returned by getName. </para>
  741. /// </summary>
  742. /// <java-name>
  743. /// getDisplayName
  744. /// </java-name>
  745. public string DisplayName
  746. {
  747. [Dot42.DexImport("getDisplayName", "()Ljava/lang/String;", AccessFlags = 1)]
  748. get{ return GetDisplayName(); }
  749. }
  750. /// <summary>
  751. /// <para>Gets a list of all network interfaces available on the local system or <c> null </c> if no interface is available.</para><para></para>
  752. /// </summary>
  753. /// <returns>
  754. /// <para>the list of <c> NetworkInterface </c> instances representing the available interfaces. </para>
  755. /// </returns>
  756. /// <java-name>
  757. /// getNetworkInterfaces
  758. /// </java-name>
  759. public static global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface> NetworkInterfaces
  760. {
  761. [Dot42.DexImport("getNetworkInterfaces", "()Ljava/util/Enumeration;", AccessFlags = 9, Signature = "()Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;")]
  762. get{ return GetNetworkInterfaces(); }
  763. }
  764. /// <summary>
  765. /// <para>Returns a List of the InterfaceAddresses for this network interface. <para>1.6 </para></para>
  766. /// </summary>
  767. /// <java-name>
  768. /// getInterfaceAddresses
  769. /// </java-name>
  770. public global::Java.Util.IList<global::Java.Net.InterfaceAddress> InterfaceAddresses
  771. {
  772. [Dot42.DexImport("getInterfaceAddresses", "()Ljava/util/List;", AccessFlags = 1, Signature = "()Ljava/util/List<Ljava/net/InterfaceAddress;>;")]
  773. get{ return GetInterfaceAddresses(); }
  774. }
  775. /// <summary>
  776. /// <para>Returns an enumeration of all the sub-interfaces of this network interface. Sub-interfaces are also known as virtual interfaces.</para><para>For example, <c> eth0:1 </c> would be a sub-interface of <c> eth0 </c> .</para><para><para>1.6 </para></para>
  777. /// </summary>
  778. /// <returns>
  779. /// <para>an Enumeration of all the sub-interfaces of this network interface </para>
  780. /// </returns>
  781. /// <java-name>
  782. /// getSubInterfaces
  783. /// </java-name>
  784. public global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface> SubInterfaces
  785. {
  786. [Dot42.DexImport("getSubInterfaces", "()Ljava/util/Enumeration;", AccessFlags = 1, Signature = "()Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;")]
  787. get{ return GetSubInterfaces(); }
  788. }
  789. /// <summary>
  790. /// <para>Returns the parent NetworkInterface of this interface if this is a sub-interface, or null if it's a physical (non virtual) interface.</para><para><para>1.6 </para></para>
  791. /// </summary>
  792. /// <returns>
  793. /// <para>the NetworkInterface this interface is attached to. </para>
  794. /// </returns>
  795. /// <java-name>
  796. /// getParent
  797. /// </java-name>
  798. public global::Java.Net.NetworkInterface Parent
  799. {
  800. [Dot42.DexImport("getParent", "()Ljava/net/NetworkInterface;", AccessFlags = 1)]
  801. get{ return GetParent(); }
  802. }
  803. /// <summary>
  804. /// <para>Returns the hardware address of the interface, if it has one, or null otherwise.</para><para><para>1.6 </para></para>
  805. /// </summary>
  806. /// <java-name>
  807. /// getHardwareAddress
  808. /// </java-name>
  809. public byte[] HardwareAddress
  810. {
  811. [Dot42.DexImport("getHardwareAddress", "()[B", AccessFlags = 1, IgnoreFromJava = true)]
  812. get{ return GetHardwareAddress(); }
  813. }
  814. /// <summary>
  815. /// <para>Returns the Maximum Transmission Unit (MTU) of this interface.</para><para><para>1.6 </para></para>
  816. /// </summary>
  817. /// <returns>
  818. /// <para>the value of the MTU for the interface. </para>
  819. /// </returns>
  820. /// <java-name>
  821. /// getMTU
  822. /// </java-name>
  823. public int MTU
  824. {
  825. [Dot42.DexImport("getMTU", "()I", AccessFlags = 1)]
  826. get{ return GetMTU(); }
  827. }
  828. }
  829. /// <summary>
  830. /// <para>This immutable class is a data structure that encapsulates username and password which is used by the <c> Authenticator </c> class.</para><para><para>Authenticator </para></para>
  831. /// </summary>
  832. /// <java-name>
  833. /// java/net/PasswordAuthentication
  834. /// </java-name>
  835. [Dot42.DexImport("java/net/PasswordAuthentication", AccessFlags = 49)]
  836. public sealed partial class PasswordAuthentication
  837. /* scope: __dot42__ */
  838. {
  839. /// <summary>
  840. /// <para>Creates an instance of a password authentication with a specified username and password.</para><para></para>
  841. /// </summary>
  842. [Dot42.DexImport("<init>", "(Ljava/lang/String;[C)V", AccessFlags = 1)]
  843. public PasswordAuthentication(string userName, char[] password) /* MethodBuilder.Create */
  844. {
  845. }
  846. /// <summary>
  847. /// <para>Gets a clone of the password stored by this instance. The user is responsible to finalize the returned array if the password clone is no longer needed.</para><para></para>
  848. /// </summary>
  849. /// <returns>
  850. /// <para>the copied password. </para>
  851. /// </returns>
  852. /// <java-name>
  853. /// getPassword
  854. /// </java-name>
  855. [Dot42.DexImport("getPassword", "()[C", AccessFlags = 1)]
  856. public char[] GetPassword() /* MethodBuilder.Create */
  857. {
  858. return default(char[]);
  859. }
  860. /// <summary>
  861. /// <para>Gets the username stored by this instance.</para><para></para>
  862. /// </summary>
  863. /// <returns>
  864. /// <para>the stored username. </para>
  865. /// </returns>
  866. /// <java-name>
  867. /// getUserName
  868. /// </java-name>
  869. [Dot42.DexImport("getUserName", "()Ljava/lang/String;", AccessFlags = 1)]
  870. public string GetUserName() /* MethodBuilder.Create */
  871. {
  872. return default(string);
  873. }
  874. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  875. internal PasswordAuthentication() /* TypeBuilder.AddDefaultConstructor */
  876. {
  877. }
  878. /// <summary>
  879. /// <para>Gets a clone of the password stored by this instance. The user is responsible to finalize the returned array if the password clone is no longer needed.</para><para></para>
  880. /// </summary>
  881. /// <returns>
  882. /// <para>the copied password. </para>
  883. /// </returns>
  884. /// <java-name>
  885. /// getPassword
  886. /// </java-name>
  887. public char[] Password
  888. {
  889. [Dot42.DexImport("getPassword", "()[C", AccessFlags = 1)]
  890. get{ return GetPassword(); }
  891. }
  892. /// <summary>
  893. /// <para>Gets the username stored by this instance.</para><para></para>
  894. /// </summary>
  895. /// <returns>
  896. /// <para>the stored username. </para>
  897. /// </returns>
  898. /// <java-name>
  899. /// getUserName
  900. /// </java-name>
  901. public string UserName
  902. {
  903. [Dot42.DexImport("getUserName", "()Ljava/lang/String;", AccessFlags = 1)]
  904. get{ return GetUserName(); }
  905. }
  906. }
  907. /// <summary>
  908. /// <para>A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for documentation of HTTP-specific features.</para><para>For example, to retrieve <c> ftp://mirror.csclub.uwaterloo.ca/index.html </c> : <pre> URL url = new URL("ftp://mirror.csclub.uwaterloo.ca/index.html");
  909. ///
  910. /// URLConnection urlConnection = url.openConnection();
  911. ///
  912. /// InputStream in = new BufferedInputStream(urlConnection.getInputStream());
  913. ///
  914. /// try {
  915. ///
  916. /// readStream(in);
  917. ///
  918. /// } finally {
  919. ///
  920. /// in.close();
  921. ///
  922. /// }
  923. ///
  924. /// </pre></para><para><c> URLConnection </c> must be configured before it has connected to the remote resource. Instances of <c> URLConnection </c> are not reusable: you must use a different instance for each connection to a resource.</para><para><h3>Timeouts</h3></para><para><c> URLConnection </c> supports two timeouts: a connect timeout and a read timeout. By default, operations never time out.</para><para><h3>Built-in Protocols</h3></para><para><ul><li><para><b>File</b><br></br> Resources from the local file system can be loaded using <c> file: </c> URIs. File connections can only be used for input. </para></li><li><para><b>FTP</b><br></br> File Transfer Protocol () is supported, but with no public subclass. FTP connections can be used for input or output but not both. </para><para>By default, FTP connections will be made using <c> anonymous </c> as the username and the empty string as the password. Specify alternate usernames and passwords in the URL: <c> ftp://username:password@host/path </c> . </para></li><li><para><b>HTTP and HTTPS</b><br></br> Refer to the HttpURLConnection and HttpsURLConnection subclasses. </para></li><li><para><b>Jar</b><br></br> Refer to the JarURLConnection subclass. </para></li></ul></para><para><h3>Registering Additional Protocols</h3></para><para>Use URL#setURLStreamHandlerFactory to register handlers for other protocol types. </para>
  925. /// </summary>
  926. /// <java-name>
  927. /// java/net/URLConnection
  928. /// </java-name>
  929. [Dot42.DexImport("java/net/URLConnection", AccessFlags = 1057)]
  930. public abstract partial class URLConnection
  931. /* scope: __dot42__ */
  932. {
  933. /// <summary>
  934. /// <para>The URL which represents the remote target of this <c> URLConnection </c> . </para>
  935. /// </summary>
  936. /// <java-name>
  937. /// url
  938. /// </java-name>
  939. [Dot42.DexImport("url", "Ljava/net/URL;", AccessFlags = 4)]
  940. protected internal global::Java.Net.URL Url;
  941. /// <summary>
  942. /// <para>The data must be modified more recently than this time in milliseconds since January 1, 1970, GMT to be transmitted. </para>
  943. /// </summary>
  944. /// <java-name>
  945. /// ifModifiedSince
  946. /// </java-name>
  947. [Dot42.DexImport("ifModifiedSince", "J", AccessFlags = 4)]
  948. protected internal long IfModifiedSince;
  949. /// <summary>
  950. /// <para>Specifies whether the using of caches is enabled or the data has to be recent for every request. </para>
  951. /// </summary>
  952. /// <java-name>
  953. /// useCaches
  954. /// </java-name>
  955. [Dot42.DexImport("useCaches", "Z", AccessFlags = 4)]
  956. protected internal bool UseCaches;
  957. /// <summary>
  958. /// <para>Specifies whether this <c> URLConnection </c> is already connected to the remote resource. If this field is set to <c> true </c> the flags for setting up the connection are not changeable anymore. </para>
  959. /// </summary>
  960. /// <java-name>
  961. /// connected
  962. /// </java-name>
  963. [Dot42.DexImport("connected", "Z", AccessFlags = 4)]
  964. protected internal bool Connected;
  965. /// <summary>
  966. /// <para>Specifies whether this <c> URLConnection </c> allows sending data. </para>
  967. /// </summary>
  968. /// <java-name>
  969. /// doOutput
  970. /// </java-name>
  971. [Dot42.DexImport("doOutput", "Z", AccessFlags = 4)]
  972. protected internal bool DoOutput;
  973. /// <summary>
  974. /// <para>Specifies whether this <c> URLConnection </c> allows receiving data. </para>
  975. /// </summary>
  976. /// <java-name>
  977. /// doInput
  978. /// </java-name>
  979. [Dot42.DexImport("doInput", "Z", AccessFlags = 4)]
  980. protected internal bool DoInput;
  981. /// <summary>
  982. /// <para>Unused by Android. This field can be accessed via getAllowUserInteraction and setAllowUserInteraction. </para>
  983. /// </summary>
  984. /// <java-name>
  985. /// allowUserInteraction
  986. /// </java-name>
  987. [Dot42.DexImport("allowUserInteraction", "Z", AccessFlags = 4)]
  988. protected internal bool AllowUserInteraction;
  989. /// <summary>
  990. /// <para>Creates a new <c> URLConnection </c> instance pointing to the resource specified by the given URL.</para><para></para>
  991. /// </summary>
  992. [Dot42.DexImport("<init>", "(Ljava/net/URL;)V", AccessFlags = 4)]
  993. protected internal URLConnection(global::Java.Net.URL url) /* MethodBuilder.Create */
  994. {
  995. }
  996. /// <summary>
  997. /// <para>Opens a connection to the resource. This method will <b>not</b> reconnect to a resource after the initial connection has been closed.</para><para></para>
  998. /// </summary>
  999. /// <java-name>
  1000. /// connect
  1001. /// </java-name>
  1002. [Dot42.DexImport("connect", "()V", AccessFlags = 1025)]
  1003. public abstract void Connect() /* MethodBuilder.Create */ ;
  1004. /// <summary>
  1005. /// <para>Returns <c> allowUserInteraction </c> . Unused by Android. </para>
  1006. /// </summary>
  1007. /// <java-name>
  1008. /// getAllowUserInteraction
  1009. /// </java-name>
  1010. [Dot42.DexImport("getAllowUserInteraction", "()Z", AccessFlags = 1)]
  1011. public virtual bool GetAllowUserInteraction() /* MethodBuilder.Create */
  1012. {
  1013. return default(bool);
  1014. }
  1015. /// <summary>
  1016. /// <para>Returns an object representing the content of the resource this <c> URLConnection </c> is connected to. First, it attempts to get the content type from the method <c> getContentType() </c> which looks at the response header field "Content-Type". If none is found it will guess the content type from the filename extension. If that fails the stream itself will be used to guess the content type.</para><para></para>
  1017. /// </summary>
  1018. /// <returns>
  1019. /// <para>the content representing object. </para>
  1020. /// </returns>
  1021. /// <java-name>
  1022. /// getContent
  1023. /// </java-name>
  1024. [Dot42.DexImport("getContent", "()Ljava/lang/Object;", AccessFlags = 1)]
  1025. public virtual object GetContent() /* MethodBuilder.Create */
  1026. {
  1027. return default(object);
  1028. }
  1029. /// <summary>
  1030. /// <para>Returns an object representing the content of the resource this <c> URLConnection </c> is connected to. First, it attempts to get the content type from the method <c> getContentType() </c> which looks at the response header field "Content-Type". If none is found it will guess the content type from the filename extension. If that fails the stream itself will be used to guess the content type. The content type must match with one of the list <c> types </c> .</para><para></para>
  1031. /// </summary>
  1032. /// <returns>
  1033. /// <para>the content representing object or <c> null </c> if the content type does not match with one of the specified types. </para>
  1034. /// </returns>
  1035. /// <java-name>
  1036. /// getContent
  1037. /// </java-name>
  1038. [Dot42.DexImport("getContent", "([Ljava/lang/Class;)Ljava/lang/Object;", AccessFlags = 1)]
  1039. public virtual object GetContent(global::System.Type[] types) /* MethodBuilder.Create */
  1040. {
  1041. return default(object);
  1042. }
  1043. /// <summary>
  1044. /// <para>Returns the content encoding type specified by the response header field <c> content-encoding </c> or <c> null </c> if this field is not set.</para><para></para>
  1045. /// </summary>
  1046. /// <returns>
  1047. /// <para>the value of the response header field <c> content-encoding </c> . </para>
  1048. /// </returns>
  1049. /// <java-name>
  1050. /// getContentEncoding
  1051. /// </java-name>
  1052. [Dot42.DexImport("getContentEncoding", "()Ljava/lang/String;", AccessFlags = 1)]
  1053. public virtual string GetContentEncoding() /* MethodBuilder.Create */
  1054. {
  1055. return default(string);
  1056. }
  1057. /// <summary>
  1058. /// <para>Returns the content length in bytes specified by the response header field <c> content-length </c> or <c> -1 </c> if this field is not set.</para><para></para>
  1059. /// </summary>
  1060. /// <returns>
  1061. /// <para>the value of the response header field <c> content-length </c> . </para>
  1062. /// </returns>
  1063. /// <java-name>
  1064. /// getContentLength
  1065. /// </java-name>
  1066. [Dot42.DexImport("getContentLength", "()I", AccessFlags = 1)]
  1067. public virtual int GetContentLength() /* MethodBuilder.Create */
  1068. {
  1069. return default(int);
  1070. }
  1071. /// <summary>
  1072. /// <para>Returns the MIME-type of the content specified by the response header field <c> content-type </c> or <c> null </c> if type is unknown.</para><para></para>
  1073. /// </summary>
  1074. /// <returns>
  1075. /// <para>the value of the response header field <c> content-type </c> . </para>
  1076. /// </returns>
  1077. /// <java-name>
  1078. /// getContentType
  1079. /// </java-name>
  1080. [Dot42.DexImport("getContentType", "()Ljava/lang/String;", AccessFlags = 1)]
  1081. public virtual string GetContentType() /* MethodBuilder.Create */
  1082. {
  1083. return default(string);
  1084. }
  1085. /// <summary>
  1086. /// <para>Returns the timestamp when this response has been sent as a date in milliseconds since January 1, 1970 GMT or <c> 0 </c> if this timestamp is unknown.</para><para></para>
  1087. /// </summary>
  1088. /// <returns>
  1089. /// <para>the sending timestamp of the current response. </para>
  1090. /// </returns>
  1091. /// <java-name>
  1092. /// getDate
  1093. /// </java-name>
  1094. [Dot42.DexImport("getDate", "()J", AccessFlags = 1)]
  1095. public virtual long GetDate() /* MethodBuilder.Create */
  1096. {
  1097. return default(long);
  1098. }
  1099. /// <summary>
  1100. /// <para>Returns the default value of <c> allowUserInteraction </c> . Unused by Android. </para>
  1101. /// </summary>
  1102. /// <java-name>
  1103. /// getDefaultAllowUserInteraction
  1104. /// </java-name>
  1105. [Dot42.DexImport("getDefaultAllowUserInteraction", "()Z", AccessFlags = 9)]
  1106. public static bool GetDefaultAllowUserInteraction() /* MethodBuilder.Create */
  1107. {
  1108. return default(bool);
  1109. }
  1110. /// <summary>
  1111. /// <para>Returns null.</para><para><xrefsect><xreftitle>Deprecated</xreftitle><xrefdescription><para>Use getRequestProperty </para></xrefdescription></xrefsect></para>
  1112. /// </summary>
  1113. /// <java-name>
  1114. /// getDefaultRequestProperty
  1115. /// </java-name>
  1116. [Dot42.DexImport("getDefaultRequestProperty", "(Ljava/lang/String;)Ljava/lang/String;", AccessFlags = 9)]
  1117. public static string GetDefaultRequestProperty(string field) /* MethodBuilder.Create */
  1118. {
  1119. return default(string);
  1120. }
  1121. /// <summary>
  1122. /// <para>R