1 package com.github.searls.jasmine.io.scripts;
2
3 import java.io.File;
4 import java.net.MalformedURLException;
5
6 public class ConvertsFileToUriString {
7
8 public String convert(File file) {
9 try {
10 return file.toURI().toURL().toString();
11 } catch (MalformedURLException e) {
12 throw new RuntimeException(e);
13 }
14 }
15
16 }