C# Class Utilities.Web.Streams.UglyStream

Removes "pretty printing" from HTML
Inheritance: Stream
Mostra file Open project: JaCraig/Craig-s-Utility-Library

Public Methods

Method Description
Flush ( ) : void

Nothing to flush

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

Don't worry about

Seek ( long offset, SeekOrigin origin ) : long

Once again not implemented

SetLength ( long value ) : void

Don't worry about

UglyStream ( Stream StreamUsing, CompressionType Compression, MinificationType Type = MinificationType.HTML ) : System

Constructor

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

Actually writes out the data

Protected Methods

Method Description
Evaluate ( Match Matcher ) : string

Evaluates whether the text has spaces, page breaks, etc. and removes them.

Method Details

Evaluate() protected static method

Evaluates whether the text has spaces, page breaks, etc. and removes them.
protected static Evaluate ( Match Matcher ) : string
Matcher System.Text.RegularExpressions.Match Match found
return string

Flush() public method

Nothing to flush
public Flush ( ) : void
return void

Read() public method

Don't worry about
public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Seek() public method

Once again not implemented
public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

Don't worry about
public SetLength ( long value ) : void
value long
return void

UglyStream() public method

Constructor
public UglyStream ( Stream StreamUsing, CompressionType Compression, MinificationType Type = MinificationType.HTML ) : System
StreamUsing Stream The stream for the page
Compression CompressionType The compression we're using (gzip or deflate)
Type MinificationType Minification type to use (defaults to HTML)
return System

Write() public method

Actually writes out the data
public Write ( byte buffer, int offset, int count ) : void
buffer byte the page's data in byte form
offset int offset of the data
count int the amount of data
return void