HttpNonSsl.java 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  1. package epson.print.ecclient;
  2. import android.util.Log;
  3. import java.net.URL;
  4. import epson.common.Constants;
  5. public class HttpNonSsl extends HttpAccess {
  6. final int BUFFER_SIZE = 2048;
  7. StringBuilder mBuffer = new StringBuilder(2048);
  8. private volatile boolean mCanceled = false;
  9. public void setDisplay(DebugDisplay debugDisplay) {
  10. mDisplay = debugDisplay;
  11. }
  12. private void dispHttpRes(String str) {
  13. if (mDisplay != null) {
  14. DebugDisplay debugDisplay = mDisplay;
  15. debugDisplay.addResText(str + Constants.BREAK_LINE);
  16. }
  17. Log.v("epson_connect", str);
  18. }
  19. private void dispHttpCmd(URL url) {
  20. if (mDisplay != null) {
  21. DebugDisplay debugDisplay = mDisplay;
  22. debugDisplay.addResText("=> " + url.toString() + Constants.BREAK_LINE);
  23. }
  24. Log.v("epson_connect", url.toString());
  25. }
  26. /* JADX WARNING: Removed duplicated region for block: B:24:0x00b4 */
  27. /* JADX WARNING: Removed duplicated region for block: B:27:0x00ba */
  28. /* Code decompiled incorrectly, please refer to instructions dump. */
  29. public int HttpGet(java.lang.String r5) {
  30. /*
  31. r4 = this;
  32. r0 = 0
  33. r4.mHttpRetCode = r0
  34. r1 = 0
  35. java.lang.StringBuilder r2 = r4.mBuffer // Catch:{ Exception -> 0x0095 }
  36. r2.setLength(r0) // Catch:{ Exception -> 0x0095 }
  37. java.net.URL r2 = new java.net.URL // Catch:{ Exception -> 0x0095 }
  38. r2.<init>(r5) // Catch:{ Exception -> 0x0095 }
  39. java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0095 }
  40. r5.<init>() // Catch:{ Exception -> 0x0095 }
  41. java.lang.String r3 = "[get]::"
  42. r5.append(r3) // Catch:{ Exception -> 0x0095 }
  43. java.lang.String r3 = r2.toString() // Catch:{ Exception -> 0x0095 }
  44. r5.append(r3) // Catch:{ Exception -> 0x0095 }
  45. java.lang.String r5 = r5.toString() // Catch:{ Exception -> 0x0095 }
  46. r4.dispHttpRes(r5) // Catch:{ Exception -> 0x0095 }
  47. java.net.URLConnection r5 = r2.openConnection() // Catch:{ Exception -> 0x0095 }
  48. java.net.HttpURLConnection r5 = (java.net.HttpURLConnection) r5 // Catch:{ Exception -> 0x0095 }
  49. r1 = 1
  50. r5.setDoInput(r1) // Catch:{ Exception -> 0x008f, all -> 0x008d }
  51. java.lang.String r1 = "GET"
  52. r5.setRequestMethod(r1) // Catch:{ Exception -> 0x008f, all -> 0x008d }
  53. r5.connect() // Catch:{ Exception -> 0x008f, all -> 0x008d }
  54. java.io.InputStream r1 = r5.getInputStream() // Catch:{ Exception -> 0x008f, all -> 0x008d }
  55. java.io.BufferedReader r2 = new java.io.BufferedReader // Catch:{ Exception -> 0x008f, all -> 0x008d }
  56. java.io.InputStreamReader r3 = new java.io.InputStreamReader // Catch:{ Exception -> 0x008f, all -> 0x008d }
  57. r3.<init>(r1) // Catch:{ Exception -> 0x008f, all -> 0x008d }
  58. r1 = 2048(0x800, float:2.87E-42)
  59. r2.<init>(r3, r1) // Catch:{ Exception -> 0x008f, all -> 0x008d }
  60. L_0x0048:
  61. java.lang.String r1 = r2.readLine() // Catch:{ Exception -> 0x008f, all -> 0x008d }
  62. if (r1 == 0) goto L_0x0054
  63. java.lang.StringBuilder r3 = r4.mBuffer // Catch:{ Exception -> 0x008f, all -> 0x008d }
  64. r3.append(r1) // Catch:{ Exception -> 0x008f, all -> 0x008d }
  65. goto L_0x0048
  66. L_0x0054:
  67. java.lang.StringBuilder r1 = r4.mBuffer // Catch:{ Exception -> 0x008f, all -> 0x008d }
  68. java.lang.String r1 = r1.toString() // Catch:{ Exception -> 0x008f, all -> 0x008d }
  69. r4.mResString = r1 // Catch:{ Exception -> 0x008f, all -> 0x008d }
  70. int r1 = r5.getResponseCode() // Catch:{ Exception -> 0x008f, all -> 0x008d }
  71. r4.mHttpRetCode = r1 // Catch:{ Exception -> 0x008f, all -> 0x008d }
  72. java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ Exception -> 0x008f, all -> 0x008d }
  73. r1.<init>() // Catch:{ Exception -> 0x008f, all -> 0x008d }
  74. java.lang.String r2 = "get return :: <"
  75. r1.append(r2) // Catch:{ Exception -> 0x008f, all -> 0x008d }
  76. int r2 = r4.mHttpRetCode // Catch:{ Exception -> 0x008f, all -> 0x008d }
  77. r1.append(r2) // Catch:{ Exception -> 0x008f, all -> 0x008d }
  78. java.lang.String r2 = "> '"
  79. r1.append(r2) // Catch:{ Exception -> 0x008f, all -> 0x008d }
  80. java.lang.String r2 = r4.mResString // Catch:{ Exception -> 0x008f, all -> 0x008d }
  81. r1.append(r2) // Catch:{ Exception -> 0x008f, all -> 0x008d }
  82. java.lang.String r2 = "'\n"
  83. r1.append(r2) // Catch:{ Exception -> 0x008f, all -> 0x008d }
  84. java.lang.String r1 = r1.toString() // Catch:{ Exception -> 0x008f, all -> 0x008d }
  85. r4.dispHttpRes(r1) // Catch:{ Exception -> 0x008f, all -> 0x008d }
  86. if (r5 == 0) goto L_0x008c
  87. r5.disconnect()
  88. L_0x008c:
  89. return r0
  90. L_0x008d:
  91. r0 = move-exception
  92. goto L_0x00b8
  93. L_0x008f:
  94. r0 = move-exception
  95. r1 = r5
  96. goto L_0x0096
  97. L_0x0092:
  98. r0 = move-exception
  99. r5 = r1
  100. goto L_0x00b8
  101. L_0x0095:
  102. r0 = move-exception
  103. L_0x0096:
  104. java.lang.String r5 = "epson_connect"
  105. java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x0092 }
  106. r2.<init>() // Catch:{ all -> 0x0092 }
  107. java.lang.String r3 = "error in HttpGet: "
  108. r2.append(r3) // Catch:{ all -> 0x0092 }
  109. java.lang.String r0 = r0.toString() // Catch:{ all -> 0x0092 }
  110. r2.append(r0) // Catch:{ all -> 0x0092 }
  111. java.lang.String r0 = r2.toString() // Catch:{ all -> 0x0092 }
  112. android.util.Log.w(r5, r0) // Catch:{ all -> 0x0092 }
  113. r5 = -1100(0xfffffffffffffbb4, float:NaN)
  114. if (r1 == 0) goto L_0x00b7
  115. r1.disconnect()
  116. L_0x00b7:
  117. return r5
  118. L_0x00b8:
  119. if (r5 == 0) goto L_0x00bd
  120. r5.disconnect()
  121. L_0x00bd:
  122. throw r0
  123. */
  124. throw new UnsupportedOperationException("Method not decompiled: epson.print.ecclient.HttpNonSsl.HttpGet(java.lang.String):int");
  125. }
  126. /* JADX WARNING: Removed duplicated region for block: B:24:0x00e2 */
  127. /* JADX WARNING: Removed duplicated region for block: B:27:0x00e8 */
  128. /* Code decompiled incorrectly, please refer to instructions dump. */
  129. public int HttpPost(java.lang.String r5, java.lang.String r6) {
  130. /*
  131. r4 = this;
  132. r0 = 0
  133. r4.mHttpRetCode = r0
  134. java.lang.String r1 = "epson_connect"
  135. java.lang.StringBuilder r2 = new java.lang.StringBuilder
  136. r2.<init>()
  137. java.lang.String r3 = "body char length: "
  138. r2.append(r3)
  139. int r3 = r6.length()
  140. r2.append(r3)
  141. java.lang.String r2 = r2.toString()
  142. android.util.Log.v(r1, r2)
  143. r1 = 0
  144. java.lang.StringBuilder r2 = r4.mBuffer // Catch:{ Exception -> 0x00c3 }
  145. r2.setLength(r0) // Catch:{ Exception -> 0x00c3 }
  146. java.net.URL r2 = new java.net.URL // Catch:{ Exception -> 0x00c3 }
  147. r2.<init>(r5) // Catch:{ Exception -> 0x00c3 }
  148. java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ Exception -> 0x00c3 }
  149. r5.<init>() // Catch:{ Exception -> 0x00c3 }
  150. java.lang.String r3 = "[post]:: "
  151. r5.append(r3) // Catch:{ Exception -> 0x00c3 }
  152. java.lang.String r3 = r2.toString() // Catch:{ Exception -> 0x00c3 }
  153. r5.append(r3) // Catch:{ Exception -> 0x00c3 }
  154. java.lang.String r3 = " :: "
  155. r5.append(r3) // Catch:{ Exception -> 0x00c3 }
  156. r5.append(r6) // Catch:{ Exception -> 0x00c3 }
  157. java.lang.String r5 = r5.toString() // Catch:{ Exception -> 0x00c3 }
  158. r4.dispHttpRes(r5) // Catch:{ Exception -> 0x00c3 }
  159. java.net.URLConnection r5 = r2.openConnection() // Catch:{ Exception -> 0x00c3 }
  160. java.net.HttpURLConnection r5 = (java.net.HttpURLConnection) r5 // Catch:{ Exception -> 0x00c3 }
  161. java.lang.String r1 = "POST"
  162. r5.setRequestMethod(r1) // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  163. r1 = 1
  164. r5.setDoOutput(r1) // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  165. java.io.PrintStream r1 = new java.io.PrintStream // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  166. java.io.OutputStream r2 = r5.getOutputStream() // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  167. r1.<init>(r2) // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  168. r1.print(r6) // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  169. r1.close() // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  170. java.io.InputStream r6 = r5.getInputStream() // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  171. java.io.BufferedReader r1 = new java.io.BufferedReader // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  172. java.io.InputStreamReader r2 = new java.io.InputStreamReader // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  173. r2.<init>(r6) // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  174. r6 = 2048(0x800, float:2.87E-42)
  175. r1.<init>(r2, r6) // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  176. L_0x0076:
  177. java.lang.String r6 = r1.readLine() // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  178. if (r6 == 0) goto L_0x0082
  179. java.lang.StringBuilder r2 = r4.mBuffer // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  180. r2.append(r6) // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  181. goto L_0x0076
  182. L_0x0082:
  183. java.lang.StringBuilder r6 = r4.mBuffer // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  184. java.lang.String r6 = r6.toString() // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  185. r4.mResString = r6 // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  186. int r6 = r5.getResponseCode() // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  187. r4.mHttpRetCode = r6 // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  188. java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  189. r6.<init>() // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  190. java.lang.String r1 = "post return :: <"
  191. r6.append(r1) // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  192. int r1 = r4.mHttpRetCode // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  193. r6.append(r1) // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  194. java.lang.String r1 = "> '"
  195. r6.append(r1) // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  196. java.lang.String r1 = r4.mResString // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  197. r6.append(r1) // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  198. java.lang.String r1 = "'\n"
  199. r6.append(r1) // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  200. java.lang.String r6 = r6.toString() // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  201. r4.dispHttpRes(r6) // Catch:{ Exception -> 0x00bd, all -> 0x00bb }
  202. if (r5 == 0) goto L_0x00ba
  203. r5.disconnect()
  204. L_0x00ba:
  205. return r0
  206. L_0x00bb:
  207. r6 = move-exception
  208. goto L_0x00e6
  209. L_0x00bd:
  210. r6 = move-exception
  211. r1 = r5
  212. goto L_0x00c4
  213. L_0x00c0:
  214. r6 = move-exception
  215. r5 = r1
  216. goto L_0x00e6
  217. L_0x00c3:
  218. r6 = move-exception
  219. L_0x00c4:
  220. java.lang.String r5 = "epson_connect"
  221. java.lang.StringBuilder r0 = new java.lang.StringBuilder // Catch:{ all -> 0x00c0 }
  222. r0.<init>() // Catch:{ all -> 0x00c0 }
  223. java.lang.String r2 = "error in HttpPost: "
  224. r0.append(r2) // Catch:{ all -> 0x00c0 }
  225. java.lang.String r6 = r6.toString() // Catch:{ all -> 0x00c0 }
  226. r0.append(r6) // Catch:{ all -> 0x00c0 }
  227. java.lang.String r6 = r0.toString() // Catch:{ all -> 0x00c0 }
  228. android.util.Log.w(r5, r6) // Catch:{ all -> 0x00c0 }
  229. r5 = -1100(0xfffffffffffffbb4, float:NaN)
  230. if (r1 == 0) goto L_0x00e5
  231. r1.disconnect()
  232. L_0x00e5:
  233. return r5
  234. L_0x00e6:
  235. if (r5 == 0) goto L_0x00eb
  236. r5.disconnect()
  237. L_0x00eb:
  238. throw r6
  239. */
  240. throw new UnsupportedOperationException("Method not decompiled: epson.print.ecclient.HttpNonSsl.HttpPost(java.lang.String, java.lang.String):int");
  241. }
  242. /* JADX WARNING: Code restructure failed: missing block: B:34:0x00d1, code lost:
  243. r8 = th;
  244. */
  245. /* JADX WARNING: Code restructure failed: missing block: B:35:0x00d4, code lost:
  246. r8 = e;
  247. */
  248. /* JADX WARNING: Code restructure failed: missing block: B:36:0x00d5, code lost:
  249. r1 = r7;
  250. */
  251. /* JADX WARNING: Code restructure failed: missing block: B:37:0x00d7, code lost:
  252. r8 = e;
  253. */
  254. /* JADX WARNING: Code restructure failed: missing block: B:38:0x00d8, code lost:
  255. r1 = r7;
  256. */
  257. /* JADX WARNING: Code restructure failed: missing block: B:39:0x00da, code lost:
  258. r8 = e;
  259. */
  260. /* JADX WARNING: Code restructure failed: missing block: B:40:0x00db, code lost:
  261. r1 = r7;
  262. */
  263. /* JADX WARNING: Code restructure failed: missing block: B:41:0x00dd, code lost:
  264. r8 = e;
  265. */
  266. /* JADX WARNING: Code restructure failed: missing block: B:42:0x00de, code lost:
  267. r1 = r7;
  268. */
  269. /* JADX WARNING: Code restructure failed: missing block: B:50:0x0101, code lost:
  270. r1.disconnect();
  271. */
  272. /* JADX WARNING: Code restructure failed: missing block: B:57:0x0122, code lost:
  273. r1.disconnect();
  274. */
  275. /* JADX WARNING: Code restructure failed: missing block: B:64:0x0143, code lost:
  276. r1.disconnect();
  277. */
  278. /* JADX WARNING: Code restructure failed: missing block: B:71:0x0164, code lost:
  279. r1.disconnect();
  280. */
  281. /* JADX WARNING: Failed to process nested try/catch */
  282. /* JADX WARNING: Removed duplicated region for block: B:34:0x00d1 A[ExcHandler: all (th java.lang.Throwable), Splitter:B:8:0x0031] */
  283. /* JADX WARNING: Removed duplicated region for block: B:35:0x00d4 A[ExcHandler: Exception (e java.lang.Exception), Splitter:B:8:0x0031] */
  284. /* JADX WARNING: Removed duplicated region for block: B:39:0x00da A[ExcHandler: FileNotFoundException (e java.io.FileNotFoundException), Splitter:B:8:0x0031] */
  285. /* JADX WARNING: Removed duplicated region for block: B:41:0x00dd A[ExcHandler: ProtocolException (e java.net.ProtocolException), Splitter:B:8:0x0031] */
  286. /* JADX WARNING: Removed duplicated region for block: B:50:0x0101 */
  287. /* JADX WARNING: Removed duplicated region for block: B:57:0x0122 */
  288. /* JADX WARNING: Removed duplicated region for block: B:64:0x0143 */
  289. /* JADX WARNING: Removed duplicated region for block: B:71:0x0164 */
  290. /* JADX WARNING: Removed duplicated region for block: B:74:0x016a */
  291. /* Code decompiled incorrectly, please refer to instructions dump. */
  292. public int PostFile(java.lang.String r7, java.lang.String r8, java.lang.String r9, java.lang.String r10, int r11, int r12) {
  293. /*
  294. r6 = this;
  295. r8 = 0
  296. r6.mHttpRetCode = r8
  297. r0 = -1000(0xfffffffffffffc18, float:NaN)
  298. if (r7 == 0) goto L_0x016e
  299. if (r9 == 0) goto L_0x016e
  300. if (r10 != 0) goto L_0x000d
  301. goto L_0x016e
  302. L_0x000d:
  303. r1 = 0
  304. r2 = -1100(0xfffffffffffffbb4, float:NaN)
  305. java.lang.StringBuilder r3 = r6.mBuffer // Catch:{ ProtocolException -> 0x0147, FileNotFoundException -> 0x0126, IOException -> 0x0105, Exception -> 0x00e4 }
  306. r3.setLength(r8) // Catch:{ ProtocolException -> 0x0147, FileNotFoundException -> 0x0126, IOException -> 0x0105, Exception -> 0x00e4 }
  307. java.io.BufferedInputStream r3 = new java.io.BufferedInputStream // Catch:{ ProtocolException -> 0x0147, FileNotFoundException -> 0x0126, IOException -> 0x0105, Exception -> 0x00e4 }
  308. java.io.FileInputStream r4 = new java.io.FileInputStream // Catch:{ ProtocolException -> 0x0147, FileNotFoundException -> 0x0126, IOException -> 0x0105, Exception -> 0x00e4 }
  309. r4.<init>(r10) // Catch:{ ProtocolException -> 0x0147, FileNotFoundException -> 0x0126, IOException -> 0x0105, Exception -> 0x00e4 }
  310. r10 = 2048(0x800, float:2.87E-42)
  311. r3.<init>(r4, r10) // Catch:{ ProtocolException -> 0x0147, FileNotFoundException -> 0x0126, IOException -> 0x0105, Exception -> 0x00e4 }
  312. java.net.URL r4 = new java.net.URL // Catch:{ ProtocolException -> 0x0147, FileNotFoundException -> 0x0126, IOException -> 0x0105, Exception -> 0x00e4 }
  313. r4.<init>(r7) // Catch:{ ProtocolException -> 0x0147, FileNotFoundException -> 0x0126, IOException -> 0x0105, Exception -> 0x00e4 }
  314. r6.dispHttpCmd(r4) // Catch:{ ProtocolException -> 0x0147, FileNotFoundException -> 0x0126, IOException -> 0x0105, Exception -> 0x00e4 }
  315. java.net.URLConnection r7 = r4.openConnection() // Catch:{ ProtocolException -> 0x0147, FileNotFoundException -> 0x0126, IOException -> 0x0105, Exception -> 0x00e4 }
  316. java.net.HttpURLConnection r7 = (java.net.HttpURLConnection) r7 // Catch:{ ProtocolException -> 0x0147, FileNotFoundException -> 0x0126, IOException -> 0x0105, Exception -> 0x00e4 }
  317. java.lang.String r1 = "POST"
  318. r7.setRequestMethod(r1) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  319. java.lang.String r1 = "Content-Type"
  320. r7.setRequestProperty(r1, r9) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  321. java.lang.String r9 = "Content-Length"
  322. java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  323. r1.<init>() // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  324. java.lang.String r4 = ""
  325. r1.append(r4) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  326. r1.append(r12) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  327. java.lang.String r1 = r1.toString() // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  328. r7.setRequestProperty(r9, r1) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  329. r9 = 1
  330. r7.setDoOutput(r9) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  331. r7.connect() // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  332. java.io.OutputStream r9 = r7.getOutputStream() // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  333. byte[] r10 = new byte[r10] // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  334. long r4 = (long) r11 // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  335. r3.skip(r4) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  336. L_0x0060:
  337. if (r12 <= 0) goto L_0x009e
  338. int r11 = r3.read(r10) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  339. if (r11 > 0) goto L_0x0075
  340. java.lang.String r8 = "epson_connect"
  341. java.lang.String r9 = "read file size error: in PostFile : "
  342. android.util.Log.w(r8, r9) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  343. if (r7 == 0) goto L_0x0074
  344. r7.disconnect()
  345. L_0x0074:
  346. return r0
  347. L_0x0075:
  348. if (r11 <= r12) goto L_0x0078
  349. r11 = r12
  350. L_0x0078:
  351. r9.write(r10, r8, r11) // Catch:{ IOException -> 0x007d, ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, Exception -> 0x00d4, all -> 0x00d1 }
  352. int r12 = r12 - r11
  353. goto L_0x0060
  354. L_0x007d:
  355. r8 = move-exception
  356. java.lang.String r9 = "epson_connect"
  357. java.lang.StringBuilder r10 = new java.lang.StringBuilder // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  358. r10.<init>() // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  359. java.lang.String r11 = "error: in post_file : "
  360. r10.append(r11) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  361. java.lang.String r8 = r8.toString() // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  362. r10.append(r8) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  363. java.lang.String r8 = r10.toString() // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  364. android.util.Log.w(r9, r8) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  365. if (r7 == 0) goto L_0x009d
  366. r7.disconnect()
  367. L_0x009d:
  368. return r0
  369. L_0x009e:
  370. r3.close() // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  371. r9.close() // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  372. java.lang.String r9 = r7.getResponseMessage() // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  373. r6.mResString = r9 // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  374. java.lang.String r9 = "post file return :: "
  375. r6.dispHttpRes(r9) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  376. java.lang.StringBuilder r9 = new java.lang.StringBuilder // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  377. r9.<init>() // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  378. java.lang.String r10 = r6.mResString // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  379. r9.append(r10) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  380. java.lang.String r10 = "\n"
  381. r9.append(r10) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  382. java.lang.String r9 = r9.toString() // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  383. r6.dispHttpRes(r9) // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  384. int r9 = r7.getResponseCode() // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  385. r6.mHttpRetCode = r9 // Catch:{ ProtocolException -> 0x00dd, FileNotFoundException -> 0x00da, IOException -> 0x00d7, Exception -> 0x00d4, all -> 0x00d1 }
  386. if (r7 == 0) goto L_0x00d0
  387. r7.disconnect()
  388. L_0x00d0:
  389. return r8
  390. L_0x00d1:
  391. r8 = move-exception
  392. goto L_0x0168
  393. L_0x00d4:
  394. r8 = move-exception
  395. r1 = r7
  396. goto L_0x00e5
  397. L_0x00d7:
  398. r8 = move-exception
  399. r1 = r7
  400. goto L_0x0106
  401. L_0x00da:
  402. r8 = move-exception
  403. r1 = r7
  404. goto L_0x0127
  405. L_0x00dd:
  406. r8 = move-exception
  407. r1 = r7
  408. goto L_0x0148
  409. L_0x00e0:
  410. r8 = move-exception
  411. r7 = r1
  412. goto L_0x0168
  413. L_0x00e4:
  414. r8 = move-exception
  415. L_0x00e5:
  416. java.lang.String r7 = "epson_connect"
  417. java.lang.StringBuilder r9 = new java.lang.StringBuilder // Catch:{ all -> 0x00e0 }
  418. r9.<init>() // Catch:{ all -> 0x00e0 }
  419. java.lang.String r10 = "error: in post_file : "
  420. r9.append(r10) // Catch:{ all -> 0x00e0 }
  421. java.lang.String r8 = r8.toString() // Catch:{ all -> 0x00e0 }
  422. r9.append(r8) // Catch:{ all -> 0x00e0 }
  423. java.lang.String r8 = r9.toString() // Catch:{ all -> 0x00e0 }
  424. android.util.Log.w(r7, r8) // Catch:{ all -> 0x00e0 }
  425. if (r1 == 0) goto L_0x0104
  426. r1.disconnect()
  427. L_0x0104:
  428. return r0
  429. L_0x0105:
  430. r8 = move-exception
  431. L_0x0106:
  432. java.lang.String r7 = "epson_connect"
  433. java.lang.StringBuilder r9 = new java.lang.StringBuilder // Catch:{ all -> 0x00e0 }
  434. r9.<init>() // Catch:{ all -> 0x00e0 }
  435. java.lang.String r10 = "error: in post_file : "
  436. r9.append(r10) // Catch:{ all -> 0x00e0 }
  437. java.lang.String r8 = r8.toString() // Catch:{ all -> 0x00e0 }
  438. r9.append(r8) // Catch:{ all -> 0x00e0 }
  439. java.lang.String r8 = r9.toString() // Catch:{ all -> 0x00e0 }
  440. android.util.Log.w(r7, r8) // Catch:{ all -> 0x00e0 }
  441. if (r1 == 0) goto L_0x0125
  442. r1.disconnect()
  443. L_0x0125:
  444. return r2
  445. L_0x0126:
  446. r8 = move-exception
  447. L_0x0127:
  448. java.lang.String r7 = "epson_connect"
  449. java.lang.StringBuilder r9 = new java.lang.StringBuilder // Catch:{ all -> 0x00e0 }
  450. r9.<init>() // Catch:{ all -> 0x00e0 }
  451. java.lang.String r10 = "error: FileNotFound in post_file : "
  452. r9.append(r10) // Catch:{ all -> 0x00e0 }
  453. java.lang.String r8 = r8.toString() // Catch:{ all -> 0x00e0 }
  454. r9.append(r8) // Catch:{ all -> 0x00e0 }
  455. java.lang.String r8 = r9.toString() // Catch:{ all -> 0x00e0 }
  456. android.util.Log.w(r7, r8) // Catch:{ all -> 0x00e0 }
  457. if (r1 == 0) goto L_0x0146
  458. r1.disconnect()
  459. L_0x0146:
  460. return r0
  461. L_0x0147:
  462. r8 = move-exception
  463. L_0x0148:
  464. java.lang.String r7 = "epson_connect"
  465. java.lang.StringBuilder r9 = new java.lang.StringBuilder // Catch:{ all -> 0x00e0 }
  466. r9.<init>() // Catch:{ all -> 0x00e0 }
  467. java.lang.String r10 = "error: in post_file : "
  468. r9.append(r10) // Catch:{ all -> 0x00e0 }
  469. java.lang.String r8 = r8.toString() // Catch:{ all -> 0x00e0 }
  470. r9.append(r8) // Catch:{ all -> 0x00e0 }
  471. java.lang.String r8 = r9.toString() // Catch:{ all -> 0x00e0 }
  472. android.util.Log.w(r7, r8) // Catch:{ all -> 0x00e0 }
  473. if (r1 == 0) goto L_0x0167
  474. r1.disconnect()
  475. L_0x0167:
  476. return r2
  477. L_0x0168:
  478. if (r7 == 0) goto L_0x016d
  479. r7.disconnect()
  480. L_0x016d:
  481. throw r8
  482. L_0x016e:
  483. return r0
  484. */
  485. throw new UnsupportedOperationException("Method not decompiled: epson.print.ecclient.HttpNonSsl.PostFile(java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, int):int");
  486. }
  487. /* JADX WARNING: Code restructure failed: missing block: B:25:0x00a9, code lost:
  488. r9 = th;
  489. */
  490. /* JADX WARNING: Code restructure failed: missing block: B:26:0x00aa, code lost:
  491. r1 = r8;
  492. */
  493. /* JADX WARNING: Code restructure failed: missing block: B:27:0x00ad, code lost:
  494. r9 = e;
  495. */
  496. /* JADX WARNING: Code restructure failed: missing block: B:28:0x00ae, code lost:
  497. r1 = r8;
  498. */
  499. /* JADX WARNING: Code restructure failed: missing block: B:29:0x00b0, code lost:
  500. r9 = e;
  501. */
  502. /* JADX WARNING: Code restructure failed: missing block: B:30:0x00b1, code lost:
  503. r1 = r8;
  504. */
  505. /* JADX WARNING: Code restructure failed: missing block: B:31:0x00b3, code lost:
  506. r9 = e;
  507. */
  508. /* JADX WARNING: Code restructure failed: missing block: B:32:0x00b4, code lost:
  509. r1 = r8;
  510. */
  511. /* JADX WARNING: Failed to process nested try/catch */
  512. /* JADX WARNING: Removed duplicated region for block: B:25:0x00a9 A[ExcHandler: all (th java.lang.Throwable), Splitter:B:7:0x003d] */
  513. /* JADX WARNING: Removed duplicated region for block: B:27:0x00ad A[ExcHandler: Exception (e java.lang.Exception), Splitter:B:7:0x003d] */
  514. /* JADX WARNING: Removed duplicated region for block: B:31:0x00b3 A[ExcHandler: ProtocolException (e java.net.ProtocolException), Splitter:B:7:0x003d] */
  515. /* JADX WARNING: Removed duplicated region for block: B:39:0x00d5 */
  516. /* JADX WARNING: Removed duplicated region for block: B:46:0x00f6 */
  517. /* JADX WARNING: Removed duplicated region for block: B:54:0x0119 */
  518. /* JADX WARNING: Removed duplicated region for block: B:57:0x011f */
  519. /* Code decompiled incorrectly, please refer to instructions dump. */
  520. public int GetFile(java.lang.String r8, java.lang.String r9) {
  521. /*
  522. r7 = this;
  523. r0 = -1000(0xfffffffffffffc18, float:NaN)
  524. if (r8 == 0) goto L_0x0123
  525. if (r9 != 0) goto L_0x0008
  526. goto L_0x0123
  527. L_0x0008:
  528. r1 = 0
  529. java.io.FileOutputStream r2 = new java.io.FileOutputStream // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  530. r2.<init>(r9) // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  531. java.io.BufferedOutputStream r3 = new java.io.BufferedOutputStream // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  532. r4 = 2048(0x800, float:2.87E-42)
  533. r3.<init>(r2, r4) // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  534. java.net.URL r2 = new java.net.URL // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  535. r2.<init>(r8) // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  536. java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  537. r5.<init>() // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  538. java.lang.String r6 = "[GetFile]::"
  539. r5.append(r6) // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  540. r5.append(r8) // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  541. java.lang.String r8 = "::"
  542. r5.append(r8) // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  543. r5.append(r9) // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  544. java.lang.String r8 = r5.toString() // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  545. r7.dispHttpRes(r8) // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  546. java.net.URLConnection r8 = r2.openConnection() // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  547. java.net.HttpURLConnection r8 = (java.net.HttpURLConnection) r8 // Catch:{ ProtocolException -> 0x00fa, IOException -> 0x00d9, Exception -> 0x00b8 }
  548. r9 = 1
  549. r8.setDoInput(r9) // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  550. java.lang.String r9 = "GET"
  551. r8.setRequestMethod(r9) // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  552. r8.connect() // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  553. java.io.InputStream r9 = r8.getInputStream() // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  554. java.io.BufferedInputStream r1 = new java.io.BufferedInputStream // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  555. r1.<init>(r9, r4) // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  556. byte[] r9 = new byte[r4] // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  557. L_0x0053:
  558. r2 = 0
  559. int r5 = r1.read(r9, r2, r4) // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  560. if (r5 <= 0) goto L_0x007f
  561. r3.write(r9, r2, r5) // Catch:{ IOException -> 0x005e, ProtocolException -> 0x00b3, Exception -> 0x00ad, all -> 0x00a9 }
  562. goto L_0x0053
  563. L_0x005e:
  564. r9 = move-exception
  565. java.lang.String r1 = "epson_connect"
  566. java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  567. r2.<init>() // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  568. java.lang.String r3 = "error: in GetFile() : "
  569. r2.append(r3) // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  570. java.lang.String r9 = r9.toString() // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  571. r2.append(r9) // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  572. java.lang.String r9 = r2.toString() // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  573. android.util.Log.w(r1, r9) // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  574. if (r8 == 0) goto L_0x007e
  575. r8.disconnect()
  576. L_0x007e:
  577. return r0
  578. L_0x007f:
  579. r3.close() // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  580. int r9 = r8.getResponseCode() // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  581. r7.mHttpRetCode = r9 // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  582. java.lang.StringBuilder r9 = new java.lang.StringBuilder // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  583. r9.<init>() // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  584. java.lang.String r1 = "get return :: <"
  585. r9.append(r1) // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  586. int r1 = r7.mHttpRetCode // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  587. r9.append(r1) // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  588. java.lang.String r1 = ">\n"
  589. r9.append(r1) // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  590. java.lang.String r9 = r9.toString() // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  591. r7.dispHttpRes(r9) // Catch:{ ProtocolException -> 0x00b3, IOException -> 0x00b0, Exception -> 0x00ad, all -> 0x00a9 }
  592. if (r8 == 0) goto L_0x00a8
  593. r8.disconnect()
  594. L_0x00a8:
  595. return r2
  596. L_0x00a9:
  597. r9 = move-exception
  598. r1 = r8
  599. goto L_0x011d
  600. L_0x00ad:
  601. r9 = move-exception
  602. r1 = r8
  603. goto L_0x00b9
  604. L_0x00b0:
  605. r9 = move-exception
  606. r1 = r8
  607. goto L_0x00da
  608. L_0x00b3:
  609. r9 = move-exception
  610. r1 = r8
  611. goto L_0x00fb
  612. L_0x00b6:
  613. r9 = move-exception
  614. goto L_0x011d
  615. L_0x00b8:
  616. r9 = move-exception
  617. L_0x00b9:
  618. java.lang.String r8 = "epson_connect"
  619. java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x00b6 }
  620. r2.<init>() // Catch:{ all -> 0x00b6 }
  621. java.lang.String r3 = "error in GetFile: "
  622. r2.append(r3) // Catch:{ all -> 0x00b6 }
  623. java.lang.String r9 = r9.toString() // Catch:{ all -> 0x00b6 }
  624. r2.append(r9) // Catch:{ all -> 0x00b6 }
  625. java.lang.String r9 = r2.toString() // Catch:{ all -> 0x00b6 }
  626. android.util.Log.w(r8, r9) // Catch:{ all -> 0x00b6 }
  627. if (r1 == 0) goto L_0x00d8
  628. r1.disconnect()
  629. L_0x00d8:
  630. return r0
  631. L_0x00d9:
  632. r9 = move-exception
  633. L_0x00da:
  634. java.lang.String r8 = "epson_connect"
  635. java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x00b6 }
  636. r2.<init>() // Catch:{ all -> 0x00b6 }
  637. java.lang.String r3 = "error: in GetFile : "
  638. r2.append(r3) // Catch:{ all -> 0x00b6 }
  639. java.lang.String r9 = r9.toString() // Catch:{ all -> 0x00b6 }
  640. r2.append(r9) // Catch:{ all -> 0x00b6 }
  641. java.lang.String r9 = r2.toString() // Catch:{ all -> 0x00b6 }
  642. android.util.Log.w(r8, r9) // Catch:{ all -> 0x00b6 }
  643. if (r1 == 0) goto L_0x00f9
  644. r1.disconnect()
  645. L_0x00f9:
  646. return r0
  647. L_0x00fa:
  648. r9 = move-exception
  649. L_0x00fb:
  650. java.lang.String r8 = "epson_connect"
  651. java.lang.StringBuilder r0 = new java.lang.StringBuilder // Catch:{ all -> 0x00b6 }
  652. r0.<init>() // Catch:{ all -> 0x00b6 }
  653. java.lang.String r2 = "error: in GetFile : "
  654. r0.append(r2) // Catch:{ all -> 0x00b6 }
  655. java.lang.String r9 = r9.toString() // Catch:{ all -> 0x00b6 }
  656. r0.append(r9) // Catch:{ all -> 0x00b6 }
  657. java.lang.String r9 = r0.toString() // Catch:{ all -> 0x00b6 }
  658. android.util.Log.w(r8, r9) // Catch:{ all -> 0x00b6 }
  659. r8 = -1100(0xfffffffffffffbb4, float:NaN)
  660. if (r1 == 0) goto L_0x011c
  661. r1.disconnect()
  662. L_0x011c:
  663. return r8
  664. L_0x011d:
  665. if (r1 == 0) goto L_0x0122
  666. r1.disconnect()
  667. L_0x0122:
  668. throw r9
  669. L_0x0123:
  670. return r0
  671. */
  672. throw new UnsupportedOperationException("Method not decompiled: epson.print.ecclient.HttpNonSsl.GetFile(java.lang.String, java.lang.String):int");
  673. }
  674. public void cancel() {
  675. mCanceled = true;
  676. }
  677. public void resetCancel() {
  678. mCanceled = false;
  679. }
  680. }