Package net.cnri.util.javascript.nashorn
Interface RequireLookup
-
public interface RequireLookup
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexists(java.lang.String filename)Returns true if the "file" exists and is a file (not a directory), otherwise false.java.io.ReadergetContent(java.lang.String filename)Returns aReaderwith the content of the file if it exists, otherwise null.
-
-
-
Method Detail
-
exists
boolean exists(java.lang.String filename)
Returns true if the "file" exists and is a file (not a directory), otherwise false.- Parameters:
filename- name of the file- Returns:
- true if the "file" exists and is a file (not a directory), otherwise false.
-
getContent
java.io.Reader getContent(java.lang.String filename)
Returns aReaderwith the content of the file if it exists, otherwise null.- Parameters:
filename- name of the file- Returns:
- a
Readerwith the content of the file if it exists, otherwise null.
-
-