public class ESModuleIO extends Object
| Constructor and Description |
|---|
ESModuleIO(io.vertx.core.Vertx vertx) |
| Modifier and Type | Method and Description |
|---|---|
static String |
adapt(String statement) |
boolean |
exists(URI uri) |
String |
getParent(String uri) |
String |
getParent(URI uri) |
boolean |
isFile(URI uri) |
String |
readFile(URI uri) |
String |
readFile(URI uri,
boolean main) |
static String |
stripBOM(String content)
Remove byte order marker.
|
static String |
stripShebang(String content)
Find end of shebang line and slice it off
|
public String getParent(String uri) throws URISyntaxException
URISyntaxExceptionpublic boolean exists(URI uri)
public boolean isFile(URI uri)
public String readFile(URI uri) throws IOException
IOExceptionpublic String readFile(URI uri, boolean main) throws IOException
IOExceptionpublic static String stripShebang(String content)
content - the content to searchCopyright © 2019. All rights reserved.