419420421422423424425426427428429
if (_os != null) _os.write(buffer, offset, length); } else { if (_tempStream == null) { _tempStream = new TempStream(); _tempStreamSize = 0; } _tempStreamSize += length; _tempStream.write(buffer, offset, length, false);
893894895896897898899900901902903904905906907908909910911912913
/** * Called from inside _logLock */ private void flushTempStream() { TempStream ts = _tempStream; _tempStream = null; _tempStreamSize = 0; try { if (ts != null) { if (_os == null) openLog(); try { ReadStream is = ts.openRead(); try { is.writeToStream(_os); } finally { is.close();