| 5 | import java.io.InputStream; |
| 6 | |
| 7 | public class Asset { |
| 8 | |
| 9 | public static InputStream open(String fileName) { |
| 10 | try { |
| 11 | return Init.context().getAssets().open(fileName.replace("assets://", "")); |
| 12 | } catch (Exception e) { |
| 13 | return null; |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | public static String read(String fileName) { |
| 18 | try { |
| 19 | return Path.read(open(fileName)); |
| 20 | } catch (Exception e) { |
| 21 | return ""; |
| 22 | } |
| 23 | } |
| 24 | } |
nothing calls this directly
no outgoing calls
no test coverage detected