public class CachedDataInput extends DataInputBase
DataInput.TypeinputBuff| Constructor and Description |
|---|
CachedDataInput() |
CachedDataInput(CachedDataInput other) |
CachedDataInput(java.nio.MappedByteBuffer initialLayer,
int layersCacheCountLimit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.nio.MappedByteBuffer |
getLayer(int layerIndex) |
void |
readExternal(java.io.ObjectInput in) |
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput out) |
getSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgenerateData, getInstancepublic CachedDataInput()
public CachedDataInput(java.nio.MappedByteBuffer initialLayer,
int layersCacheCountLimit)
public CachedDataInput(CachedDataInput other)
public final java.nio.MappedByteBuffer getLayer(int layerIndex)
throws java.lang.OutOfMemoryError
getLayer in interface DataInputgetLayer in class DataInputBasejava.lang.OutOfMemoryErrorpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class DataInputBasejava.io.IOExceptionpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class DataInputBasejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class DataInputBasejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic final java.lang.String toString()
toString in class java.lang.Object