
public class ORecordBytes extends ORecordAbstract implements OBlob
ORecordElement.STATUS_contentChanged, _dirty, _dirtyManager, _listeners, _recordFormat, _recordId, _recordVersion, _size, _source, _statusRECORD_TYPE| Constructor and Description |
|---|
ORecordBytes() |
ORecordBytes(byte[] iSource) |
ORecordBytes(ODatabaseDocumentInternal iDatabase) |
ORecordBytes(ODatabaseDocumentInternal iDatabase,
byte[] iSource) |
ORecordBytes(ORID iRecordId) |
| Modifier and Type | Method and Description |
|---|---|
ORecordAbstract |
clear()
All the fields are deleted but the record identity is maintained.
|
ORecordBytes |
copy()
Creates a copy of the record.
|
int |
fromInputStream(InputStream in)
Reads the input stream in memory.
|
int |
fromInputStream(InputStream in,
int maxSize)
Reads the input stream in memory specifying the maximum bytes to read.
|
ORecordBytes |
fromStream(byte[] iRecordBuffer)
Unmarshalls the object.
|
byte |
getRecordType() |
ORecordBytes |
reset(byte[] iSource) |
protected void |
setup() |
void |
toOutputStream(OutputStream out) |
byte[] |
toStream()
Marshalls the object.
|
addIdentityChangeListener, addListener, checkForLoading, clearSource, compare, compareTo, copyTo, delete, detach, equals, fill, flatCopy, fromJSON, fromJSON, fromJSON, fromJSON, getDatabase, getDatabaseIfDefined, getDatabaseIfDefinedInternal, getDatabaseInternal, getDirtyManager, getIdentity, getInternalStatus, getOwner, getRecord, getSize, getVersion, hashCode, invokeListenerEvent, isContentChanged, isDirty, isLocked, load, lock, lockingStrategy, onAfterIdentityChanged, onBeforeIdentityChanged, reload, reload, reload, reload, removeIdentityChangeListener, removeListener, reset, save, save, save, save, setContentChanged, setDirty, setDirtyManager, setDirtyNoChanged, setIdentity, setIdentity, setInternalStatus, setVersion, toJSON, toJSON, toJSON, toJSON, toString, track, unload, unlock, unsetDirty, unTrackclone, finalize, getClass, notify, notifyAll, wait, wait, waitdelete, detach, fromJSON, getDatabase, getIdentity, getSize, getVersion, isDirty, load, reload, reload, reset, save, save, save, save, toJSON, toJSON, unloadgetInternalStatus, getOwner, setDirty, setDirtyNoChanged, setInternalStatusgetRecord, isLocked, lock, lockingStrategy, unlockcompareTocompare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic ORecordBytes()
public ORecordBytes(ODatabaseDocumentInternal iDatabase)
public ORecordBytes(ODatabaseDocumentInternal iDatabase, byte[] iSource)
public ORecordBytes(byte[] iSource)
public ORecordBytes(ORID iRecordId)
public ORecordBytes reset(byte[] iSource)
public ORecordBytes copy()
ORecordpublic ORecordBytes fromStream(byte[] iRecordBuffer)
OSerializableStreamfromStream in interface OSerializableStreamfromStream in class ORecordAbstractiRecordBuffer - byte array representation of the objectpublic ORecordAbstract clear()
ORecordclear in interface ORecordclear in class ORecordAbstractpublic byte[] toStream()
OSerializableStreamtoStream in interface OSerializableStreamtoStream in class ORecordAbstractOSerializableStream.fromStream(byte[])public byte getRecordType()
getRecordType in class ORecordAbstractprotected void setup()
setup in class ORecordAbstractpublic int fromInputStream(InputStream in) throws IOException
fromInputStream(InputStream, int) because allocation is
made multiple times. If you already know the input size use fromInputStream(InputStream, int).fromInputStream in interface OBlobin - Input Stream, use buffered input stream wrapper to speed up readingIOExceptionpublic int fromInputStream(InputStream in, int maxSize) throws IOException
fromInputStream(InputStream) because allocation is made only once.fromInputStream in interface OBlobin - Input Stream, use buffered input stream wrapper to speed up readingmaxSize - Maximum size to readIOException - if an I/O error occurs.public void toOutputStream(OutputStream out) throws IOException
toOutputStream in interface OBlobIOExceptionCopyright © 2009–2025 OrientDB. All rights reserved.