All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
js.web.dom.File Maven / Gradle / Ivy
package js.web.dom;
import js.lang.Any;
import js.util.collections.Array;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSByRef;
import org.teavm.jso.JSProperty;
/**
* Provides information about files and allows JavaScript in a web page to access their content.
*/
public interface File extends Blob {
@JSBody(script = "return File.prototype")
static File prototype() {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(params = {"fileBits", "fileName", "options"}, script = "return new File(fileBits, fileName, options)")
static File create(BufferSource[] fileBits, String fileName, FilePropertyBag options) {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(params = {"fileBits", "fileName", "options"}, script = "return new File(fileBits, fileName, options)")
static File create(Blob[] fileBits, String fileName, FilePropertyBag options) {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(params = {"fileBits", "fileName", "options"}, script = "return new File(fileBits, fileName, options)")
static File create(String[] fileBits, String fileName, FilePropertyBag options) {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(params = {"fileBits", "fileName", "options"}, script = "return new File(fileBits, fileName, options)")
static File create(Array fileBits, String fileName, FilePropertyBag options) {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(params = {"fileBits", "fileName"}, script = "return new File(fileBits, fileName)")
static File create(BufferSource[] fileBits, String fileName) {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(params = {"fileBits", "fileName"}, script = "return new File(fileBits, fileName)")
static File create(Blob[] fileBits, String fileName) {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(params = {"fileBits", "fileName"}, script = "return new File(fileBits, fileName)")
static File create(Array fileBits, String fileName) {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSProperty
double getLastModified();
@JSProperty
String getName();
}