()
| 60 | } |
| 61 | |
| 62 | public byte[] readFile() { |
| 63 | InputStream is = null; |
| 64 | try { |
| 65 | is = openInputStream(); |
| 66 | int fileSize = 0; |
| 67 | fileSize = (int) fileSize(); |
| 68 | byte[] b = new byte[fileSize]; |
| 69 | is.read(b); |
| 70 | is.close(); |
| 71 | close(); |
| 72 | return b; |
| 73 | } catch (IOException ex) { |
| 74 | if (StaticData.Debug) |
| 75 | ex.printStackTrace(); |
| 76 | } finally { |
| 77 | try { |
| 78 | is.close(); |
| 79 | } catch (IOException ex) { |
| 80 | if (StaticData.Debug) |
| 81 | ex.printStackTrace(); |
| 82 | } |
| 83 | } |
| 84 | return null; |
| 85 | } |
| 86 | |
| 87 | public void writeFile(byte[] rawBytes) { |
| 88 | try { |
no test coverage detected