Create a new dataref the file with the specified path. If the file cannot be opened, this returns null.
(@NotNull String path)
| 61 | * If the file cannot be opened, this returns null. |
| 62 | */ |
| 63 | @Nullable |
| 64 | public static Data makeFromFileName(@NotNull String path) { |
| 65 | assert path != null : "Can’t makeFromFileName with path == null"; |
| 66 | Stats.onNativeCall(); |
| 67 | long ptr = _nMakeFromFileName(path); |
| 68 | return ptr == 0 ? null : new Data(ptr); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Create a new dataref using a subset of the data in the specified |