Package org.jmol.awtjs2d
Class JSFile
- java.lang.Object
-
- org.jmol.awtjs2d.JSFile
-
- All Implemented Interfaces:
GenericFileInterface
class JSFile extends Object implements GenericFileInterface
A class that mimics java.io.File
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFullPath()
String
getName()
GenericFileInterface
getParentAsFile()
static Object
getURLContents(URL url, byte[] outputBytes, String post)
Note that the JS equivalent passes back a javajs.util.SBboolean
isDirectory()
long
length()
(package private) static GenericFileInterface
newFile(String name)
-
-
-
Constructor Detail
-
JSFile
JSFile(String name)
-
-
Method Detail
-
newFile
static GenericFileInterface newFile(String name)
-
getParentAsFile
public GenericFileInterface getParentAsFile()
- Specified by:
getParentAsFile
in interfaceGenericFileInterface
-
getFullPath
public String getFullPath()
- Specified by:
getFullPath
in interfaceGenericFileInterface
-
getName
public String getName()
- Specified by:
getName
in interfaceGenericFileInterface
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory
in interfaceGenericFileInterface
-
length
public long length()
- Specified by:
length
in interfaceGenericFileInterface
-
-