()
| 95 | } |
| 96 | |
| 97 | private long getFileSize() { |
| 98 | long size = -1; |
| 99 | FileIO file = FileIO.createConnection(fileName); |
| 100 | try { |
| 101 | InputStream is = file.openInputStream(); |
| 102 | |
| 103 | try { |
| 104 | size = file.fileSize(); |
| 105 | } catch (Exception e) { } |
| 106 | |
| 107 | is.close(); |
| 108 | file.close(); |
| 109 | } catch (IOException e1) { |
| 110 | try { |
| 111 | file.close(); |
| 112 | } catch (IOException e2) { } |
| 113 | } |
| 114 | return size; |
| 115 | } |
| 116 | |
| 117 | private void readByteBlock(long pos) { |
| 118 | FileIO f = FileIO.createConnection(fileName); |
no test coverage detected