public class FileReader extends EventTarget
FileReader
.org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
Modifier and Type | Field and Description |
---|---|
static int |
DONE
The entire read request has been completed.
|
static int |
EMPTY
No data has been loaded yet.
|
static int |
LOADING
Data is currently being loaded.
|
CONST, DONTENUM, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
FileReader() |
Modifier and Type | Method and Description |
---|---|
org.htmlunit.corejs.javascript.Function |
getOnerror()
Returns the
onerror event handler for this FileReader . |
org.htmlunit.corejs.javascript.Function |
getOnload()
Returns the
onload event handler for this FileReader . |
int |
getReadyState()
Returns the current state of the reading operation.
|
Object |
getResult()
Returns the file's contents.
|
void |
jsConstructor()
JavaScript constructor.
|
void |
readAsArrayBuffer(Object object)
|
void |
readAsDataURL(Object object)
|
void |
readAsText(Object object,
Object encoding)
|
void |
setOnerror(Object onerror)
Sets the
onerror event handler for this FileReader . |
void |
setOnload(Object onload)
Sets the
onload event handler for this FileReader . |
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, removeEventListener, setEventHandler
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromise
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
public static final int EMPTY
public static final int LOADING
public static final int DONE
public void jsConstructor()
jsConstructor
in class EventTarget
public int getReadyState()
public Object getResult()
public void readAsDataURL(Object object) throws IOException
object
- the Blob
or File
from which to readIOException
- if an error occurspublic void readAsArrayBuffer(Object object)
public org.htmlunit.corejs.javascript.Function getOnload()
onload
event handler for this FileReader
.onload
event handler for this FileReader
public void setOnload(Object onload)
onload
event handler for this FileReader
.onload
- the onload
event handler for this FileReader
public org.htmlunit.corejs.javascript.Function getOnerror()
onerror
event handler for this FileReader
.onerror
event handler for this FileReader
public void setOnerror(Object onerror)
onerror
event handler for this FileReader
.onerror
- the onerror
event handler for this FileReader
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.