public class JavaScriptFileImpl extends Object implements JavaScriptFile
Constructor and Description |
---|
JavaScriptFileImpl(String uri,
String path) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
construct() |
boolean |
del() |
String |
getContentType() |
InputStream |
getInputStream() |
long |
getLastModified() |
long |
getLength() |
String |
getName() |
OutputStream |
getOutputStream() |
String |
getPath() |
String |
getURI() |
boolean |
isDirectory() |
boolean |
isExist() |
ArrayList<String> |
listFiles() |
boolean |
mkdir() |
boolean |
move(String dest) |
void |
open(String mode) |
String |
read(long count) |
String |
readAll() |
boolean |
saveAs(String dest) |
void |
write(InputStream data) |
void |
write(String data) |
public void construct() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
construct
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public void open(String mode) throws org.jaggeryjs.scriptengine.exceptions.ScriptException
open
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public void close() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
close
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public String read(long count) throws org.jaggeryjs.scriptengine.exceptions.ScriptException
read
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public void write(String data) throws org.jaggeryjs.scriptengine.exceptions.ScriptException
write
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public void write(InputStream data) throws org.jaggeryjs.scriptengine.exceptions.ScriptException
write
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public String readAll() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
readAll
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public boolean move(String dest) throws org.jaggeryjs.scriptengine.exceptions.ScriptException
move
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public boolean del() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
del
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public long getLength() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
getLength
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public long getLastModified() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
getLastModified
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public String getName() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
getName
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public boolean isExist() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
isExist
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public InputStream getInputStream() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
getInputStream
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public OutputStream getOutputStream() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
getOutputStream
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public String getContentType() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
getContentType
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public boolean saveAs(String dest) throws org.jaggeryjs.scriptengine.exceptions.ScriptException
saveAs
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public boolean mkdir() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
mkdir
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public boolean isDirectory() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
isDirectory
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public String getPath() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
getPath
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public String getURI() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
getURI
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
public ArrayList<String> listFiles() throws org.jaggeryjs.scriptengine.exceptions.ScriptException
listFiles
in interface JavaScriptFile
org.jaggeryjs.scriptengine.exceptions.ScriptException
Copyright © 2019 WSO2 Inc. All rights reserved.