{"id":338,"date":"2025-11-30T15:24:20","date_gmt":"2025-11-30T07:24:20","guid":{"rendered":"https:\/\/www.52runoob.com\/?p=338"},"modified":"2025-11-30T15:24:20","modified_gmt":"2025-11-30T07:24:20","slug":"eofexception%e4%ba%a7%e7%94%9f%e5%8e%9f%e5%9b%a0%e5%8f%8a%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/www.52runoob.com\/index.php\/2025\/11\/30\/eofexception%e4%ba%a7%e7%94%9f%e5%8e%9f%e5%9b%a0%e5%8f%8a%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88\/","title":{"rendered":"EOFException\u4ea7\u751f\u539f\u56e0\u53ca\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"\n<p>\u4e0b\u9762\u7ed9\u4f60\u4e00\u4efd <strong>EOFException \u4ea7\u751f\u539f\u56e0\u4e0e\u89e3\u51b3\u65b9\u6848\uff08\u8d85\u8be6\u7ec6 + \u6613\u61c2\u7248\uff09<\/strong>\uff0c\u9002\u7528\u4e8e Java I\/O\u3001\u7f51\u7edc\u901a\u4fe1\u3001\u5e8f\u5217\u5316\u3001\u9762\u8bd5\u89e3\u7b54\u4ee5\u53ca\u535a\u5ba2\u6587\u7ae0\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\ud83c\udf1f EOFException \u662f\u4ec0\u4e48\uff1f<\/h1>\n\n\n\n<p><code>EOFException<\/code> \u5168\u79f0 <strong>End Of File Exception<\/strong>\uff0c\u4e2d\u6587\u662f <strong>\u6587\u4ef6\u7ed3\u675f\u5f02\u5e38<\/strong>\u3002<\/p>\n\n\n\n<p>\u5b83\u8868\u793a\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>\u7a0b\u5e8f\u8fd8\u60f3\u7ee7\u7eed\u8bfb\u6570\u636e\uff0c\u4f46\u8f93\u5165\u6d41\u5df2\u7ecf\u8bfb\u5230\u672b\u5c3e\uff0c\u6ca1\u6709\u66f4\u591a\u6570\u636e\u53ef\u4ee5\u8bfb\u53d6\u3002<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p>EOFException \u901a\u5e38\u662f <strong>\u53ef\u9884\u671f\u7684\u5f02\u5e38<\/strong>\uff08\u4e0d\u662f\u81f4\u547d\u9519\u8bef\uff09\uff0c\u7ecf\u5e38\u51fa\u73b0\u5728 I\/O \u6d41\u5904\u7406\u4e2d\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\ud83e\udde8 \u4e00\u3001\u5e38\u89c1\u4ea7\u751f\u539f\u56e0\uff086 \u5927\u7c7b\uff0c\u51e0\u4e4e\u6240\u6709\u60c5\u51b5\u90fd\u5728\u8fd9\u91cc\uff09<\/h1>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u2460 \u8bfb\u53d6\u6570\u636e\u65f6\u8d85\u8fc7\u4e86\u771f\u5b9e\u6570\u636e\u957f\u5ea6\uff08\u6700\u5e38\u89c1\uff09<\/strong><\/h2>\n\n\n\n<p>\u793a\u4f8b\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nDataInputStream dis = new DataInputStream(new FileInputStream(&quot;data.bin&quot;));\n\nwhile (true) {\n    int x = dis.readInt();  \/\/ \u6587\u4ef6\u5df2\u8bfb\u5b8c\uff0c\u518d\u8bfb\u4f1a\u4ea7\u751f EOFException\n    System.out.println(x);\n}\n\n<\/pre><\/div>\n\n\n<p><strong>\u539f\u56e0<\/strong>\uff1a\u5faa\u73af\u8bfb\u53d6\u6ca1\u6709\u9000\u51fa\u6761\u4ef6\uff0c\u6587\u4ef6\u8bfb\u53d6\u5230\u7ed3\u675f\u540e\u4ecd\u7ee7\u7eed\u8bfb\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u2461 write \/ read \u6570\u636e\u7c7b\u578b\u4e0d\u5339\u914d\uff08\u5e8f\u5217\u5316\u5e38\u89c1\uff09<\/strong><\/h2>\n\n\n\n<p>\u4f8b\u5982\uff1a<\/p>\n\n\n\n<p>\u5199\u5165\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndos.writeInt(100);\n\n<\/pre><\/div>\n\n\n<p>\u8bfb\u53d6\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndis.readLong();  \/\/ \u8bd5\u56fe\u8bfb 8 \u5b57\u8282\uff0c\u5b9e\u9645\u53ea\u6709 4 \u5b57\u8282\n\n<\/pre><\/div>\n\n\n<p>\u2192 \u8d85\u754c \u2192 EOFException<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u2462 \u7f51\u7edc\u901a\u4fe1\u4e2d\uff0c\u5bf9\u7aef\u4e3b\u52a8\u5173\u95ed\u8f93\u51fa\u6d41<\/strong><\/h2>\n\n\n\n<p>\u573a\u666f\uff1aSocket \u901a\u4fe1\u3001RPC\u3001\u81ea\u5b9a\u4e49\u534f\u8bae\u3002<\/p>\n\n\n\n<p>\u670d\u52a1\u7aef\u5173\u95ed\u8fde\u63a5\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsocket.close();\n\n<\/pre><\/div>\n\n\n<p>\u5ba2\u6237\u7aef\u8fd8\u5728\u8bfb\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ninput.read()  \/\/ \u5bf9\u65b9\u5df2\u65ad\u5f00 \u2192 EOFException\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u2463 ObjectInputStream \/ ObjectOutputStream \u6d41\u8bfb\u53d6\u9519\u8bef<\/strong><\/h2>\n\n\n\n<p>\u5178\u578b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5199\u5165\u591a\u4e2a\u5bf9\u8c61\uff0c\u4f46\u8bfb\u53d6\u6b21\u6570\u4e0d\u5339\u914d<\/li>\n\n\n\n<li>\u5bf9\u8c61\u6d41\u4e2d\u95f4\u65ad\u5f00<\/li>\n\n\n\n<li>\u5ba2\u6237\u7aef\u53d1\u9001\u5bf9\u8c61\u540e\u76f4\u63a5\u5173\u95ed\u8fde\u63a5<\/li>\n<\/ul>\n\n\n\n<p>\u4f8b\u5982\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nObject obj = ois.readObject(); \/\/ \u5bf9\u7aef\u5173\u95ed\u6d41 \u2192 EOFException\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u2464 BASE64\u3001ZipInputStream \u89e3\u538b\u7f29\u65f6\u5185\u5bb9\u4e0d\u5b8c\u6574<\/strong><\/h2>\n\n\n\n<p>\u538b\u7f29\u6570\u636e\u4e0d\u5b8c\u6574\u6216\u635f\u574f\uff0c\u4e5f\u53ef\u80fd\u5728\u8bfb\u53d6\u5c3e\u90e8\u65f6\u89e6\u53d1 EOFException\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u2465 \u53cd\u5e8f\u5217\u5316\u6587\u4ef6\u88ab\u622a\u65ad \/ \u635f\u574f<\/strong><\/h2>\n\n\n\n<p>\u4f8b\u5982\uff1a\u4e0b\u8f7d\u65f6\u4e2d\u65ad\u3001\u6587\u4ef6\u4e0d\u5b8c\u6574\u3001\u6587\u4ef6\u88ab\u8986\u76d6\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\ud83d\udee0 \u4e8c\u3001EOFException \u7684\u89e3\u51b3\u65b9\u6848\uff08\u6309\u539f\u56e0\u5bf9\u5e94\uff09<\/h1>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u2714 \u65b9\u6848 1\uff1a\u4f7f\u7528 <code>while((line = in.read()) != -1)<\/code> \u5224\u65ad\u8bfb\u5b8c<\/h1>\n\n\n\n<p>\u8fd9\u662f<strong>\u6700\u6b63\u786e<\/strong>\u7684\u8bfb\u53d6\u65b9\u5f0f\u3002<\/p>\n\n\n\n<p>\u793a\u4f8b\uff08\u5b57\u8282\u6d41\uff09\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nint b;\nwhile ((b = input.read()) != -1) {\n    System.out.println(b);\n}\n\n<\/pre><\/div>\n\n\n<p>\u793a\u4f8b\uff08\u884c\u8bfb\u53d6\uff09\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nString line;\nwhile ((line = br.readLine()) != null) {\n    System.out.println(line);\n}\n\n<\/pre><\/div>\n\n\n<p>\u907f\u514d\u65e0\u9650\u8bfb\u53d6\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u2714 \u65b9\u6848 2\uff1a\u4fdd\u8bc1 read \u4e0e write \u6b21\u6570\u3001\u7c7b\u578b\u4e00\u81f4<\/h1>\n\n\n\n<p>\u5199\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndos.writeInt(100);\ndos.writeInt(200);\n\n<\/pre><\/div>\n\n\n<p>\u6b63\u786e\u8bfb\u53d6\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndis.readInt();\ndis.readInt();\n\n<\/pre><\/div>\n\n\n<p>\u4e0d\u8981\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndis.readLong();  \/\/ \u4e0d\u5339\u914d\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u2714 \u65b9\u6848 3\uff1aSocket \u901a\u4fe1\u65f6\uff0c\u786e\u4fdd\u5bf9\u7aef\u5173\u95ed\u987a\u5e8f\u6b63\u786e<\/h1>\n\n\n\n<p>\u670d\u52a1\u7aef\u5173\u95ed\u8f93\u51fa\u65f6\u8981\u4f7f\u7528\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsocket.shutdownOutput();  \/\/ \u8868\u793a\u8f93\u51fa\u7ed3\u675f\n\n<\/pre><\/div>\n\n\n<p>\u5ba2\u6237\u7aef\u53ef\u901a\u8fc7 read == -1 \u5224\u65ad\u6d41\u5df2\u7ed3\u675f\u3002<\/p>\n\n\n\n<p>\u907f\u514d\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u76f4\u63a5\u5173\u95ed socket<\/li>\n\n\n\n<li>\u5728\u53d1\u9001\u8fc7\u7a0b\u4e2d\u65ad\u5f00\u8fde\u63a5<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u2714 \u65b9\u6848 4\uff1aObjectInputStream + ObjectOutputStream \u4f7f\u7528\u534f\u8bae\u6807\u8bc6<\/h1>\n\n\n\n<p>\u9519\u8bef\u793a\u4f8b\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\u5faa\u73af\u5199\u5bf9\u8c61 \u2192 \u5199\u591a\u5c11\u6b21\u4e0d\u786e\u5b9a\n\u5faa\u73af\u8bfb\u5bf9\u8c61 \u2192 \u4e0d\u77e5\u9053\u8bfb\u5230\u54ea\u91cc\u7ed3\u675f\n\n<\/pre><\/div>\n\n\n<p>\u6b63\u786e\u65b9\u5f0f\u4e00\uff1a\u5199\u5165\u5bf9\u8c61\u6570\u91cf<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\noos.writeInt(list.size());\nfor (Object obj : list) {\n    oos.writeObject(obj);\n}\n\n<\/pre><\/div>\n\n\n<p>\u6b63\u786e\u65b9\u5f0f\u4e8c\uff1a\u5199\u5165\u7ed3\u675f\u6807\u5fd7\u5bf9\u8c61<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\noos.writeObject(null); \/\/ \u4f5c\u4e3a\u7ed3\u675f\u6807\u8bb0\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u2714 \u65b9\u6848 5\uff1a\u68c0\u67e5\u538b\u7f29\u6587\u4ef6\u3001BASE64 \u6570\u636e\u662f\u5426\u5b8c\u6574<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>BASE64 \u5b57\u7b26\u662f\u5426\u7f3a\u5c11\u586b\u5145 <code>=<\/code><\/li>\n\n\n\n<li>ZIP \u6587\u4ef6\u662f\u5426\u5b8c\u6574\u4e0b\u8f7d<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u2714 \u65b9\u6848 6\uff1a\u53cd\u5e8f\u5217\u5316\u524d\u68c0\u67e5\u6587\u4ef6\u957f\u5ea6<\/h1>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nFile f = new File(&quot;data.obj&quot;);\nif (f.length() == 0) throw new IOException(&quot;\u6587\u4ef6\u4e3a\u7a7a&quot;);\n\n<\/pre><\/div>\n\n\n<p>\u907f\u514d\u8bfb\u53d6\u7a7a\u6587\u4ef6\u89e6\u53d1 EOFException\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\ud83d\udccc \u4e09\u3001EOFException \u662f\u5426\u9700\u8981\u6355\u83b7\uff1f<\/h1>\n\n\n\n<h3 class=\"wp-block-heading\">\u2714 \u5728\u5faa\u73af\u8bfb\u53d6\u65f6\uff0cEOFException \u662f\u201c\u6b63\u5e38\u73b0\u8c61\u201d\uff0c\u53ef\u4ee5\u6355\u83b7\u5e76\u6b63\u5e38\u7ed3\u675f\uff1a<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ntry {\n    while (true) {\n        int x = dis.readInt();\n    }\n} catch (EOFException e) {\n    System.out.println(&quot;\u8bfb\u53d6\u7ed3\u675f&quot;);\n}\n\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">\u274c \u5176\u4ed6\u573a\u666f\u5219\u9700\u8981\u4fee\u590d\u903b\u8f91\uff0c\u800c\u4e0d\u662f\u6355\u83b7\u5ffd\u7565\u3002<\/h3>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\ud83e\udde0 \u56db\u3001\u9762\u8bd5\u56de\u7b54\uff08\u7b80\u7248\uff09<\/h1>\n\n\n\n<p>\u5982\u679c\u4f60\u9047\u5230\u9762\u8bd5\u95ee\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u4e3a\u4ec0\u4e48\u4f1a\u53d1\u751f EOFException\uff1f<\/p>\n<\/blockquote>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u8fd9\u6837\u56de\u7b54\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nEOFException \u662f Java \u7684\u4e00\u79cd\u8f93\u5165\u6d41\u5f02\u5e38\uff0c\u8868\u793a\u7a0b\u5e8f\u5c1d\u8bd5\u8bfb\u53d6\u8d85\u8fc7\u6570\u636e\u672b\u5c3e\u3002\n\u5e38\u89c1\u539f\u56e0\u5305\u62ec\uff1a\n1. \u5faa\u73af\u8bfb\u53d6\u6ca1\u6709\u5224\u65ad read() \u662f\u5426\u8fd4\u56de -1\uff1b\n2. read\/write \u6b21\u6570\u6216\u7c7b\u578b\u4e0d\u5339\u914d\uff1b\n3. \u7f51\u7edc\u901a\u4fe1\u4e2d\u5bf9\u7aef\u63d0\u524d\u5173\u95ed\u8fde\u63a5\uff1b\n4. \u5bf9\u8c61\u5e8f\u5217\u5316\u8bfb\u53d6\u4e0d\u5b8c\u6574\uff1b\n5. \u6570\u636e\u6587\u4ef6\u635f\u574f\u6216\u622a\u65ad\u3002\n\n\u89e3\u51b3\u65b9\u5f0f\u662f\uff1a\u5728\u8bfb\u53d6\u6570\u636e\u65f6\u4f7f\u7528 read() != -1 \u5224\u65ad\uff0c\u4fdd\u8bc1\u8bfb\u5199\u4e00\u81f4\uff0c\u5e76\u786e\u4fdd\u6570\u636e\u6d41\u5b8c\u6574\u4f20\u8f93\u3002\n\n<\/pre><\/div>\n\n\n<p>\u5b8c\u7f8e\u56de\u7b54\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\ud83c\udfaf \u4e94\u3001\u603b\u7ed3\uff08\u6781\u7b80\u7248\uff09<\/h1>\n\n\n\n<p><strong>\u4ea7\u751f\u539f\u56e0\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8bfb\u53d6\u8d85\u51fa\u6587\u4ef6\u672b\u5c3e<\/li>\n\n\n\n<li>\u8bfb\u5199\u6b21\u6570\/\u7c7b\u578b\u4e0d\u4e00\u81f4<\/li>\n\n\n\n<li>\u7f51\u7edc\u7aef\u5173\u95ed\u6d41<\/li>\n\n\n\n<li>\u5e8f\u5217\u5316\u5bf9\u8c61\u4e0d\u5b8c\u6574<\/li>\n<\/ul>\n\n\n\n<p><strong>\u89e3\u51b3\u65b9\u6848\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528 <code>read() != -1<\/code> \u5224\u5b9a\u7ed3\u675f<\/li>\n\n\n\n<li>\u4fdd\u8bc1\u6570\u636e\u5199\u5165\u4e0e\u8bfb\u53d6\u4e00\u81f4<\/li>\n\n\n\n<li>\u7f51\u7edc\u901a\u4fe1\u4f7f\u7528 <code>shutdownOutput()<\/code><\/li>\n\n\n\n<li>\u786e\u4fdd\u6587\u4ef6\/\u538b\u7f29\u6d41\u5b8c\u6574<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u5982\u679c\u4f60\u9700\u8981\uff0c\u6211\u8fd8\u80fd\u63d0\u4f9b\uff1a<\/p>\n\n\n\n<p>\ud83d\udccc EOFException \u8c03\u8bd5\u6307\u5357<br>\ud83d\udccc \u5bf9\u8c61\u6d41\uff08ObjectInputStream\uff09\u5e38\u89c1\u95ee\u9898\u5927\u5168<br>\ud83d\udccc Socket \u901a\u4fe1\u5b8c\u6574\u793a\u4f8b\uff08\u907f\u514d EOFException\uff09<br>\ud83d\udccc \u89c6\u9891\u811a\u672c\u7248\u89e3\u91ca\uff08\u9762\u5411\u5c0f\u767d\uff09<\/p>\n\n\n\n<p>\u544a\u8bc9\u6211\u5373\u53ef\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u9762\u7ed9\u4f60\u4e00\u4efd EOFException \u4ea7\u751f\u539f\u56e0\u4e0e\u89e3\u51b3\u65b9\u6848\uff08\u8d85\u8be6\u7ec6 + \u6613\u61c2\u7248\uff09&#8230; <a class=\"more-link\" href=\"https:\/\/www.52runoob.com\/index.php\/2025\/11\/30\/eofexception%e4%ba%a7%e7%94%9f%e5%8e%9f%e5%9b%a0%e5%8f%8a%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-338","post","type-post","status-publish","format-standard","hentry","category-12"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/comments?post=338"}],"version-history":[{"count":1,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/338\/revisions"}],"predecessor-version":[{"id":339,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/338\/revisions\/339"}],"wp:attachment":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/media?parent=338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/categories?post=338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/tags?post=338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}