Package org.jmol.awtjs2d
Class JSFile
java.lang.Object
org.jmol.awtjs2d.JSFile
- All Implemented Interfaces:
GenericFileInterface
A class that mimics java.io.File
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()static ObjectgetURLContents(URL url, byte[] outputBytes, String post) Note that the JS equivalent passes back a javajs.util.SBbooleanlonglength()(package private) static GenericFileInterface
-
Field Details
-
name
-
fullName
-
-
Constructor Details
-
JSFile
JSFile(String name)
-
-
Method Details
-
newFile
-
getParentAsFile
- Specified by:
getParentAsFilein interfaceGenericFileInterface
-
getFullPath
- Specified by:
getFullPathin interfaceGenericFileInterface
-
getName
- Specified by:
getNamein interfaceGenericFileInterface
-
isDirectory
public boolean isDirectory()- Specified by:
isDirectoryin interfaceGenericFileInterface
-
length
public long length()- Specified by:
lengthin interfaceGenericFileInterface
-
getURLContents
Note that the JS equivalent passes back a javajs.util.SB- Parameters:
url-outputBytes-post-- Returns:
- javajs.util.SB or
-