* Append from an input stream, using InputStream.read semantics,
* i.e. just call is.read once even if more data is available.
*/
public int appendRead(InputStream is, long length)
{
TempBuffer tBuf = TempBuffer.allocate();
try {
byte []buffer = tBuf.getBuffer();
int sublen = buffer.length;
if (length < sublen)
sublen = (int) length;
sublen = is.read(buffer, 0, sublen);