InputStream stream = getLogFileFromS3(filePath);
BufferedReader bufferedReader=new BufferedReader(new InputStreamReader(stream));
while (bufferedReader.ready()) {
String line = bufferedReader.readLine();
}
BufferedInputStream.available() tells you how many bytes can be read without blocking. This is the sum of the number of bytes already in the buffer and the avaiable() result of the nested input stream. Note also that available() always returns zero for an SSL socket.
InputStream.available() on an SSL socket always returns zero because it can't tell how much data is available to read without blocking unless it decrypts some data, and it can't in general do that without blocking because SSL comes in discrete records. So it returns zero. So you have to dedicate a thread to reading the socket and blocking while it does so.
分享到:
相关推荐
机泵抽空的原因及处理.doc
大跨结构局部抽空提升施工关键技术.docx
看图写话专项练习抽空让孩子写写.pdf
金融知识图谱自动化构建比赛,抽空做一下。。。
堰塘抽空堵漏后处理预案.docx
石化用离心泵抽空原因分析.rar
多年智能手机底层驱动软件开发, 抽空写了底层调试小结,希望对大家有用!
期末考试选择题标准答案--同学们有时间抽空背下.html
支付sdk —— 该组件为封装了 微信,支付宝,银联支付, 一键快速集成,简单几步就可以让你的应用获得支付功能,后续抽空更新其他支付.zip,太多无法一一验证是否可用,程序如果跑不起来需要自调,部分代码功能进行...
抽空软包装腌制牛肉罐头(食品安全企业标准).pdf
抽空软包装腌制麻辣牛肉罐头(食品安全企业标准).pdf
抽空软包装粉蒸猪肉罐头(食品安全企业标准).pdf
抽空软包装粉蒸猪肉罐头1(食品安全企业标准).pdf
抽空软包装粉蒸猪肉罐头2(食品安全企业标准).pdf
抽空软包装萝卜猪肉(牛肉)丸罐头(食品安全企业标准).pdf
webService的实现方式之一JWS,有需要的同学可以下载代码抽空研究;
之前分享过一篇安卓UI测试,但是没有实现数据与代码分离,后期维护成本较高,所以最近抽空优化了一下。 不想看文章得可以直接去Github,欢迎拍砖 大致结构如下: testyaml管理用例,实现数据与代码分离,一个模块一...
网上搜集的,应该对你有帮助吧,抽空看看吧.面试还是最重要的.
),于是我抽空在 android 上面实现了一个其中比较有趣的设计,点击喇叭弹射出去圆点控制音量。在写这个控件的时候遇到的一些知识点分享给大家。视频演示地址 效果图: Gradle Step 1. Add it in your root build....