public class JavaResource extends Java implements BinaryObject
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
TYPE  | 
PACKAGE_TYPE| Constructor and Description | 
|---|
JavaResource()  | 
JavaResource(java.lang.String name,
            Schema schema)  | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
getBytes()
Gets the byte for this binary object as an array. 
 | 
java.io.InputStream | 
getInputStream()
Gets the byte for this binary object as a stream. 
 | 
java.lang.String | 
getType()
Returns the type of this object. 
 | 
void | 
setBytes(byte[] bytes)
Sets the bytes for this binary object. 
 | 
getSchema, setSchemacheckInit, checkInit, copyToImpl, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitializationaddObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, setProperty, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddObjectListener, getSchema, removeObjectListener, setSchemaaddObjectListener, fireObjectUpdated, removeObjectListeneraddObjectListener, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperties, getReferenceIDs, hashCode, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setNamegetProperty, getProperty, setProperties, setPropertypublic static final java.lang.String TYPE
public JavaResource()
public JavaResource(java.lang.String name,
            Schema schema)
public java.lang.String getType()
DBObjectpublic byte[] getBytes()
BinaryObjectgetBytes in interface BinaryObjectpublic void setBytes(byte[] bytes)
BinaryObjectsetBytes in interface BinaryObjectbytes - the bytes to set as the contents of this object.public java.io.InputStream getInputStream()
BinaryObjectgetInputStream in interface BinaryObject