Reads a chunk of data from the stream.
public byte[] read(long length)
read returns a chunk of string data read from the stream, or a null value if the end of the stream has been reached.
Author author = Author.findByPrimaryKey(authorID);
BigString text = author.getBiography();
text.openForRead();
int bufferLength = 1024;
string something = text.read(bufferLength); //null if EOF
while (something != null)
{
something = text.read(bufferLength);
}
text.close();