C# Class Pchp.Library.Streams.TextReadFilter

Stream Filter used to convert \r\n to \n when reading a text file.
Inheritance: IFilter
Afficher le fichier Open project: iolevel/peachpie Class Usage Examples

Méthodes publiques

Méthode Description
Filter ( Context ctx, TextElement input, bool closing ) : TextElement

Processes the input (either of type string or byte[]) data and returns the filtered data in one of the formats above or null.

OnClose ( ) : void

Called when the containig stream is being closed.

OnCreate ( ) : void

Called when the filter is attached to a stream.

Method Details

Filter() public méthode

Processes the input (either of type string or byte[]) data and returns the filtered data in one of the formats above or null.
public Filter ( Context ctx, TextElement input, bool closing ) : TextElement
ctx Pchp.Core.Context
input TextElement
closing bool
Résultat TextElement

OnClose() public méthode

Called when the containig stream is being closed.
public OnClose ( ) : void
Résultat void

OnCreate() public méthode

Called when the filter is attached to a stream.
public OnCreate ( ) : void
Résultat void