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 StringgetFullPath()StringgetName()GenericFileInterfacegetParentAsFile()static ObjectgetURLContents(URL url, byte[] outputBytes, String post)Note that the JS equivalent passes back a javajs.util.SBbooleanisDirectory()longlength()(package private) static GenericFileInterfacenewFile(String name)
-
-
-
Constructor Detail
-
JSFile
JSFile(String name)
-
-
Method Detail
-
newFile
static GenericFileInterface newFile(String name)
-
getParentAsFile
public GenericFileInterface getParentAsFile()
- Specified by:
getParentAsFilein interfaceGenericFileInterface
-
getFullPath
public String getFullPath()
- Specified by:
getFullPathin interfaceGenericFileInterface
-
getName
public String getName()
- Specified by:
getNamein interfaceGenericFileInterface
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfaceGenericFileInterface
-
length
public long length()
- Specified by:
lengthin interfaceGenericFileInterface
-
-