C# Class AssetPackager.ScriptDeferFilter

Inheritance: Stream
Datei anzeigen Open project: kpumuk/assetpackager.net

Public Methods

Method Description
Close ( ) : void

Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.

Flush ( ) : void

Clears all buffers for this stream and causes any buffered data to be written to the underlying device.

Read ( byte buffer, int offset, int count ) : int

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

ScriptDeferFilter ( HttpResponse response ) : System

Initializes a new instance of ScriptDeferFilter class.

Seek ( long offset, SeekOrigin origin ) : long

Sets the position within the current stream.

SetLength ( long value ) : void

Sets the length of the current stream.

Write ( byte buffer, int offset, int count ) : void

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

Private Methods

Method Description
CompareChars ( string value, char content, int pos ) : bool

Compares string with characters contained in the content at the specified position ignoring case.

String value to compare should be uppercased (for example "EXAMPLE")!

FlushPendingBuffer ( ) : void

Writes pending buffer to the output stream.

RenderAllScriptBlocks ( ) : void

Render collected scripts blocks all together.

WriteOutput ( char content, int pos, int length ) : void

Writes specified number of bytes to the output stream.

Method Details

Close() public method

Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
public Close ( ) : void
return void

Flush() public method

Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
public Flush ( ) : void
return void

Read() public method

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
public Read ( byte buffer, int offset, int count ) : int
buffer byte An array of bytes. When this method returns, the buffer /// contains the specified byte array with the values between and /// ( + - 1) replaced by the bytes /// read from the current source.
offset int The zero-based byte offset in at which /// to begin storing the data read from the current stream.
count int The maximum number of bytes to be read from the current stream.
return int

ScriptDeferFilter() public method

Initializes a new instance of ScriptDeferFilter class.
public ScriptDeferFilter ( HttpResponse response ) : System
response System.Web.HttpResponse Response stream.
return System

Seek() public method

Sets the position within the current stream.
public Seek ( long offset, SeekOrigin origin ) : long
offset long A byte offset relative to the parameter.
origin SeekOrigin A value of type indicating the reference point /// used to obtain the new position.
return long

SetLength() public method

Sets the length of the current stream.
public SetLength ( long value ) : void
value long The desired length of the current stream in bytes.
return void

Write() public method

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
public Write ( byte buffer, int offset, int count ) : void
buffer byte An array of bytes. This method copies /// bytes from to the current stream.
offset int The zero-based byte offset in at /// which to begin copying bytes to the current stream.
count int The number of bytes to be written to the current stream.
return void