javajs.api.GenericFileInterfacepublic class JSFile
extends java.lang.Object
implements javajs.api.GenericFileInterface
| Modifier and Type | Field | Description |
|---|---|---|
private java.lang.String |
fullName |
|
private java.lang.String |
name |
| Constructor | Description |
|---|---|
JSFile(java.lang.String name) |
| Modifier and Type | Method | 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.GenericFileInterfacepublic java.lang.String getFullPath()
getFullPath in interface javajs.api.GenericFileInterfacepublic java.lang.String getName()
getName in interface javajs.api.GenericFileInterfacepublic boolean isDirectory()
isDirectory in interface javajs.api.GenericFileInterfacepublic long length()
length in interface javajs.api.GenericFileInterfacepublic static java.lang.Object getURLContents(java.net.URL url,
byte[] outputBytes,
java.lang.String post)
url - outputBytes - post -