C# Class Utilities.Web.Streams.UglyStream

Removes "pretty printing" from HTML
Inheritance: Stream
Afficher le fichier Open project: JaCraig/Craig-s-Utility-Library

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Evaluate ( Match Matcher ) : string

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

Method Details

Evaluate() protected static méthode

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
Résultat string

Flush() public méthode

Nothing to flush
public Flush ( ) : void
Résultat void

Read() public méthode

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

Seek() public méthode

Once again not implemented
public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

Don't worry about
public SetLength ( long value ) : void
value long
Résultat void

UglyStream() public méthode

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)
Résultat System

Write() public méthode

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
Résultat void