public static class JavaStreamWrap.StreamWrapImpl extends Referenceable
| Modifier and Type | Field and Description |
|---|---|
protected int |
byteCount |
static java.lang.String |
CLASS_NAME |
protected ScriptRunner |
runtime |
| Modifier | Constructor and Description |
|---|---|
|
StreamWrapImpl() |
protected |
StreamWrapImpl(Handle handle,
ScriptRunner runtime) |
| Modifier and Type | Method and Description |
|---|---|
static void |
close(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function func) |
static java.lang.Object |
construct(org.mozilla.javascript.Context cx,
java.lang.Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr) |
int |
getByteCount() |
java.lang.String |
getClassName() |
org.mozilla.javascript.Function |
getOnRead() |
int |
getWriteQueueSize() |
protected void |
onRead(int err,
java.nio.ByteBuffer buf) |
void |
readStart() |
void |
readStop() |
void |
setOnRead(org.mozilla.javascript.Function r) |
static java.lang.Object |
writeAsciiString(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function func) |
static java.lang.Object |
writeBuffer(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function func) |
protected void |
writeComplete(int err,
int len,
org.mozilla.javascript.Scriptable req) |
static java.lang.Object |
writeUcs2String(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function func) |
static java.lang.Object |
writeUtf8String(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function func) |
clearErrno, clearPin, close, getRunner, getRunner, ref, requestPin, setErrno, setErrno, unrefapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizepublic static final java.lang.String CLASS_NAME
protected int byteCount
protected ScriptRunner runtime
public StreamWrapImpl()
protected StreamWrapImpl(Handle handle, ScriptRunner runtime)
public java.lang.String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class Referenceable@JSConstructor
public static java.lang.Object construct(org.mozilla.javascript.Context cx,
java.lang.Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr)
@JSGetter(value="bytes") public int getByteCount()
@JSGetter(value="writeQueueSize") public int getWriteQueueSize()
@JSSetter(value="onread") public void setOnRead(org.mozilla.javascript.Function r)
@JSGetter(value="onread") public org.mozilla.javascript.Function getOnRead()
@JSFunction
public static void close(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function func)
@JSFunction
public static java.lang.Object writeBuffer(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function func)
@JSFunction
public static java.lang.Object writeUtf8String(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function func)
@JSFunction
public static java.lang.Object writeAsciiString(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function func)
@JSFunction
public static java.lang.Object writeUcs2String(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] args,
org.mozilla.javascript.Function func)
protected void writeComplete(int err,
int len,
org.mozilla.javascript.Scriptable req)
@JSFunction public void readStart()
@JSFunction public void readStop()
protected void onRead(int err,
java.nio.ByteBuffer buf)
Copyright © 2018 Apigee Corporation. All Rights Reserved.