de.jreality.scene.data
Class ByteBufferList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
de.jreality.scene.data.DataItem
de.jreality.scene.data.DataList
de.jreality.scene.data.ByteBufferList
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List
public class ByteBufferList
- extends DataList
- implements java.io.Serializable
This class uses a pool of ByteBuffer when being de-serialized. Clients should
copy data and release the buffer afterwards.
Be careful: this class is intended to be used as a traffic object for transferring data
Dont use for usual data storage! Only 1- and 2-dimensional int and double arrays are supported!
- See Also:
- Serialized Form
Methods inherited from class de.jreality.scene.data.DataItem |
copyTo, copyTo, printUsage, toDoubleArray, toDoubleArrayArray, toIntArray, toIntArrayArray, toStringArray, toStringArray, toStringArrayArray, toStringArrayArray |
Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList |
Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
usedDataLists
public static java.util.LinkedList<ByteBufferList> usedDataLists
getCoveredLength
public int getCoveredLength()
setCoveredLength
public void setCoveredLength(int coveredLength)
getCoveredModel
public StorageModel getCoveredModel()
setCoveredModel
public void setCoveredModel(StorageModel coveredModel)
freeDataList
public static void freeDataList(ByteBufferList wdl)
createByteBufferCopy
public static ByteBufferList createByteBufferCopy(DataList dl)
toString
public java.lang.String toString()
- Overrides:
toString
in class DataList
getEntryLength
public int getEntryLength()
setEntryLength
public void setEntryLength(int entryLength)
createFittingDataObject
public java.lang.Object createFittingDataObject()
prepareDataListSet
public static DataListSet prepareDataListSet(DataListSet attributes)
releaseDataListSet
public static void releaseDataListSet(DataListSet attributes)
canCopy
public static boolean canCopy(DataList dl)
releaseList
public static void releaseList(ByteBufferList copy)
- Parameters:
copy
-