C# Class Pchp.Library.Streams.TextReadFilter

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

Public Methods

Method 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 method

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
return TextElement

OnClose() public method

Called when the containig stream is being closed.
public OnClose ( ) : void
return void

OnCreate() public method

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