(long pos)
| 143 | } |
| 144 | |
| 145 | private long getCorrectIndex(long pos) { |
| 146 | if (pos < 0) { |
| 147 | return 0; |
| 148 | } else if (pos > (fileSize - BLOCK_SIZE)) { |
| 149 | return (fileSize - BLOCK_SIZE); |
| 150 | } |
| 151 | return pos; |
| 152 | } |
| 153 | |
| 154 | public boolean inBegin() { |
| 155 | return (current_index <= 0)?true:false; |