Class ESModuleIO


  • public class ESModuleIO
    extends Object
    • Constructor Detail

      • ESModuleIO

        public ESModuleIO​(io.vertx.core.Vertx vertx)
    • Method Detail

      • getParent

        public String getParent​(URI uri)
      • exists

        public boolean exists​(URI uri)
      • isFile

        public boolean isFile​(URI uri)
      • 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
      • stripBOM

        public static String stripBOM​(String content)
        Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) because the buffer-to-string conversion in `fs.readFileSync()` translates it to FEFF, the UTF-16 BOM.
        Parameters:
        content - the content to search
        Returns:
        the striped content