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 Object
getURLContents
(URL url, byte[] outputBytes, String post) Note that the JS equivalent passes back a javajs.util.SBboolean
long
length()
(package private) static GenericFileInterface
-
Field Details
-
name
-
fullName
-
-
Constructor Details
-
JSFile
JSFile(String name)
-
-
Method Details
-
newFile
-
getParentAsFile
- Specified by:
getParentAsFile
in interfaceGenericFileInterface
-
getFullPath
- Specified by:
getFullPath
in interfaceGenericFileInterface
-
getName
- Specified by:
getName
in interfaceGenericFileInterface
-
isDirectory
public boolean isDirectory()- Specified by:
isDirectory
in interfaceGenericFileInterface
-
length
public long length()- Specified by:
length
in interfaceGenericFileInterface
-
getURLContents
Note that the JS equivalent passes back a javajs.util.SB- Parameters:
url
-outputBytes
-post
-- Returns:
- javajs.util.SB or
-