public int getLength()
        {
            try {
                _out.flush();

                return(_tempStream.getLength());
            } catch (IOException e) {
                throw new QuercusModuleException(e);
            }
        }
        /**
         * Returns the buffer contents.
         */
        public Value getContents()
        {
            try {
                _out.flush();

                StringValue bb = _env.createBinaryBuilder(_tempStream.getLength());

                for (TempBuffer ptr = _tempStream.getHead();
                     ptr != null;
                     ptr = ptr.getNext())
                {
                    bb.append(ptr.getBuffer(), 0, ptr.getLength());
                }

                return(bb);
            } catch (IOException e) {
                _env.error(e.ToString(), e);

                return(BooleanValue.FALSE);
            }
        }