Package com.mckoi.database
Class BlobStore.ClobRefImpl
- java.lang.Object
-
- com.mckoi.database.BlobStore.AbstractRef
-
- com.mckoi.database.BlobStore.ClobRefImpl
-
- All Implemented Interfaces:
ClobRef,Ref,StringAccessor
- Enclosing class:
- BlobStore
private class BlobStore.ClobRefImpl extends BlobStore.AbstractRef implements ClobRef
An implementation of ClobRef used to represent a reference to a large character object inside this blob store.
-
-
Field Summary
-
Fields inherited from class com.mckoi.database.BlobStore.AbstractRef
reference_id, size, type
-
-
Constructor Summary
Constructors Constructor Description ClobRefImpl(long reference_id, byte type, long size, boolean open_for_write)Constructs the ClobRef implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.ReadergetReader()Returns a Reader that allows the string to be read sequentually from start to finish.intlength()Returns the number of characters in the string.java.lang.StringtoString()Returns this string as a java.lang.String object.-
Methods inherited from class com.mckoi.database.BlobStore.AbstractRef
assertIsOpen, close, complete, getID, getRawSize, getType, read, write
-
-
-
-
Method Detail
-
length
public int length()
Description copied from interface:StringAccessorReturns the number of characters in the string.- Specified by:
lengthin interfaceStringAccessor- Overrides:
lengthin classBlobStore.AbstractRef
-
getReader
public java.io.Reader getReader()
Description copied from interface:StringAccessorReturns a Reader that allows the string to be read sequentually from start to finish.- Specified by:
getReaderin interfaceStringAccessor
-
toString
public java.lang.String toString()
Description copied from interface:StringAccessorReturns this string as a java.lang.String object. Some care may be necessary with this call because a very large string will require a lot space on the heap.- Specified by:
toStringin interfaceStringAccessor- Overrides:
toStringin classjava.lang.Object
-
-