class JSFile extends java.lang.Object implements GenericFileInterface
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
fullName |
private java.lang.String |
name |
Constructor and Description |
---|
JSFile(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFullPath() |
java.lang.String |
getName() |
GenericFileInterface |
getParentAsFile() |
static java.lang.Object |
getURLContents(java.net.URL url,
byte[] outputBytes,
java.lang.String post)
Note that the JS equivalent passes back a javajs.util.SB
|
boolean |
isDirectory() |
long |
length() |
(package private) static GenericFileInterface |
newFile(java.lang.String name) |
static GenericFileInterface newFile(java.lang.String name)
public GenericFileInterface getParentAsFile()
getParentAsFile
in interface GenericFileInterface
public java.lang.String getFullPath()
getFullPath
in interface GenericFileInterface
public java.lang.String getName()
getName
in interface GenericFileInterface
public boolean isDirectory()
isDirectory
in interface GenericFileInterface
public long length()
length
in interface GenericFileInterface
public static java.lang.Object getURLContents(java.net.URL url, byte[] outputBytes, java.lang.String post)
url
- outputBytes
- post
-