Package io.reactiverse.es4x.impl
Class ESModuleIO
- java.lang.Object
-
- io.reactiverse.es4x.impl.ESModuleIO
-
public class ESModuleIO extends Object
-
-
Constructor Summary
Constructors Constructor Description ESModuleIO(io.vertx.core.Vertx vertx)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Stringadapt(String statement)booleanexists(URI uri)StringgetParent(String uri)StringgetParent(URI uri)booleanisFile(URI uri)StringreadFile(URI uri)StringreadFile(URI uri, boolean main)StringreadFile(URI uri, boolean main, boolean adapt)static StringstripBOM(String content)Remove byte order marker.static StringstripShebang(String content)Find end of shebang line and slice it off
-
-
-
Method Detail
-
getParent
public String getParent(String uri) throws URISyntaxException
- Throws:
URISyntaxException
-
exists
public boolean exists(URI uri)
-
isFile
public boolean isFile(URI uri)
-
readFile
public String readFile(URI uri) throws IOException
- Throws:
IOException
-
readFile
public String readFile(URI uri, boolean main) throws IOException
- Throws:
IOException
-
readFile
public String readFile(URI uri, boolean main, boolean adapt) throws IOException
- Throws:
IOException
-
stripShebang
public static String stripShebang(String content)
Find end of shebang line and slice it off- Parameters:
content- the content to search- Returns:
- the striped content
-
-