C# Класс Utilities.Web.Streams.UglyStream

Removes "pretty printing" from HTML
Наследование: Stream
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Evaluate ( Match Matcher ) : string

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

Описание методов

Evaluate() защищенный статический Метод

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
Результат string

Flush() публичный Метод

Nothing to flush
public Flush ( ) : void
Результат void

Read() публичный Метод

Don't worry about
public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Результат int

Seek() публичный Метод

Once again not implemented
public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Результат long

SetLength() публичный Метод

Don't worry about
public SetLength ( long value ) : void
value long
Результат void

UglyStream() публичный Метод

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)
Результат System

Write() публичный Метод

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
Результат void