Simple wrapper around HttpWriter to support the Stream interface
Inheritance: Stream
 internal HttpWriter(HttpResponse response) : base(null)
 {
     this._response = response;
     this._stream = new HttpResponseStream(this);
     this._buffers = new ArrayList();
     this._lastBuffer = null;
     this._charBuffer = (char[]) s_Allocator.GetBuffer();
     this._charBufferLength = this._charBuffer.Length;
     this._charBufferFree = this._charBufferLength;
     this.UpdateResponseBuffering();
 }
Example #2
0
		internal HttpResponse ()
		{
			output_stream = new HttpResponseStream (this);
			writer = new HttpWriter (this);
		}
Example #3
0
		internal HttpWriter (HttpResponse response)
		{
			this.response = response;
			encoding = response.ContentEncoding;
			output_stream = response.output_stream;
		}
        internal HttpWriter(HttpResponse response): base(null) {
            _response = response;
            _stream = new HttpResponseStream(this);

            _buffers = new ArrayList();
            _lastBuffer = null;

            _charBuffer = (char[])s_Allocator.GetBuffer();
            _charBufferLength = _charBuffer.Length;
            _charBufferFree = _charBufferLength;

            UpdateResponseBuffering();
            
            // delay getting response encoding until it is really needed
            // UpdateResponseEncoding();
        }
		internal HttpWriter (HttpResponse Response)
		{
			_Response = Response;

			_Encoding = _Response.ContentEncoding;
			_OutputStream = AllocateStream ();
			_OutputHelper = new StreamWriter (_OutputStream, _Response.ContentEncoding);
			_ResponseStream = new HttpResponseStream (this);
		}  
        internal HttpWriter(HttpResponse response): base(null) {
            _response = response;
            _stream = new HttpResponseStream(this);

            _buffers = new ArrayList();
            _lastBuffer = null;

            // Setup the buffer on demand using CharBuffer property
            _charBuffer = null;
            _charBufferLength = 0;
            _charBufferFree = 0;

            UpdateResponseBuffering();
            
            // delay getting response encoding until it is really needed
            // UpdateResponseEncoding();
        }
Example #7
0
 internal HttpWriter(HttpResponse response)
 {
     this.response = response;
     encoding      = response.ContentEncoding;
     output_stream = response.output_stream;
 }
Example #8
0
 internal HttpResponse()
 {
     output_stream = new HttpResponseStream(this);
     writer        = new HttpWriter(this);
 }
Example #9
0
		public OutputFilterStream (HttpResponseStream stream)
		{
			this.stream = stream;
		}
Example #10
0
		internal void ReleaseResources ()
		{
			output_stream.ReleaseResources (true);
			output_stream = null;
		}
Example #11
0
 internal void ReleaseResources()
 {
     output_stream.ReleaseResources(true);
     output_stream = null;
 }
Example #12
0
 public OutputFilterStream(HttpResponseStream stream)
 {
     this.stream = stream;
 }