(String path, String type)
| 112 | |
| 113 | |
| 114 | public static String getFileAsString(String path, String type) { |
| 115 | try { |
| 116 | return getFileByteSource(path, type).asCharSource(Charsets.UTF_8).read(); |
| 117 | } catch (IOException e) { |
| 118 | log.error(e.toString()); |
| 119 | } |
| 120 | return null; |
| 121 | } |
| 122 | |
| 123 | public static ByteSource getFileByteSource(String path, String type) throws IOException { |
| 124 | char nullChar = 0; |
no test coverage detected