如何与DataInputStream
,这是存储与此代码读取String
:DataInputStream和OutputStream的写入/读取字符串长度
DataOutputStream dataOut = new DataOutputStream (out); // Some other stream
String title = processed.getTitle();
dataOut.writeInt(title.length());
dataOut.writeBytes(title);
读入?错误 你可以阅读从 - DataInputStream – Antoniossss
尝试此链接 - http://e-geek.pl/。我写了关于流操作的simle文章。它在波兰和谷歌翻译的缺点不能很好地处理它; P – Antoniossss