public class JSFile
extends java.lang.Object
implements javajs.api.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() |
javajs.api.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 javajs.api.GenericFileInterface |
newFile(java.lang.String name) |
static javajs.api.GenericFileInterface newFile(java.lang.String name)
public javajs.api.GenericFileInterface getParentAsFile()
getParentAsFile
in interface javajs.api.GenericFileInterface
public java.lang.String getFullPath()
getFullPath
in interface javajs.api.GenericFileInterface
public java.lang.String getName()
getName
in interface javajs.api.GenericFileInterface
public boolean isDirectory()
isDirectory
in interface javajs.api.GenericFileInterface
public long length()
length
in interface javajs.api.GenericFileInterface
public static java.lang.Object getURLContents(java.net.URL url, byte[] outputBytes, java.lang.String post)
url
- outputBytes
- post
-