国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 學(xué)院 > 開發(fā)設(shè)計(jì) > 正文

org.apache.hadoop.fs-Seekable

2019-11-14 21:19:22
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
org.apache.hadoop.fs-Seekable

本來(lái)要先看BufferedFSInputStream的,但是它實(shí)現(xiàn)了Seekable和PositionedReadable接口,就先看這兩個(gè),再看它會(huì)比較容易理解些


 1 package org.apache.hadoop.fs; 2  3 import java.io.*; 4  5 /** Stream that permits seeking. */ 6 //提供按位置查找功能的接口 7 public interface Seekable { 8   /** 9    * Seek to the given offset from the start of the file.10    * The next read() will be from that location.  Can't11    * seek past the end of the file.12    */13   void seek(long pos) throws IOException;14   //從指定文件中的位置pos,對(duì)文件流進(jìn)行前向搜索。15   /**16    * Return the current offset from the start of the file17    */18   long getPos() throws IOException;19 //返回文件流中當(dāng)前偏移位置。 20   /**21    * Seeks a different copy of the data.  Returns true if 22    * found a new source, false otherwise.23    */24   boolean seekToNewSource(long targetPos) throws IOException;25   //從targetPos位置搜索文件數(shù)據(jù)的一個(gè)不同拷貝,搜索到則返回true,否則返回false。26 }



發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 修文县| 红桥区| 育儿| 武冈市| 田阳县| 安吉县| 重庆市| 棋牌| 沾益县| 乐山市| 涿鹿县| 佛冈县| 金华市| 乾安县| 油尖旺区| 盐山县| 宽甸| 普陀区| 南安市| 通榆县| 专栏| 阳谷县| 灵台县| 沅江市| 巴马| 合肥市| 郁南县| 陇西县| 楚雄市| 朝阳区| 休宁县| 余姚市| 保康县| 巧家县| 洪雅县| 江门市| 依兰县| 松潘县| 西乌珠穆沁旗| 青铜峡市| 高邑县|