This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.
Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.
Project: I/O Utility Classes
Unit: PJPipeFilters
Applies to: ~>1.0
This pipe filter class constructs valid Unicode strings from chunks of data read from a pipe.
Data chunks may or may not be split on valid Unicode character boundaries. An event is triggered for each string read. Strings are also parsed into lines that are split by a specified end of line marker. Each line is notified to the user via another event.
The class works only with Unicode text from the Basic Multilingual Plane (BMP).
TPJUnicodeBMPPipeFilter descends from TPJPipeFilter.
The only method introduced in this class is an override of TObject.AfterConstruction to set default property values. There is no need to call this method directly.
Method | Description |
---|---|
Create | Object constructor. Sets up object to filter a specified pipe. |
ReadPipe | Reads all available data from the pipe. |
Flush | Flushes any unprocessed buffered data. |
HaveUnprocessedData | Checks there is currently any buffered, unprocessed, data. |
Property | Description |
---|---|
EOLMarker | End of line marker used when parsing text into lines. |
Property | Description |
---|---|
Pipe | Read only property providing access to the pipe that is being filtered. |
Event | Description |
---|---|
OnLineEnd | Event triggered when each end of line is reached. |
OnText | Event triggered whenever valid text is read from pipe. |
No events are inherited.