C# Class GooglePlayServices.CommandLine.LineReader

Aggregates lines read by AsyncStreamReader.
显示文件 Open project: googlesamples/unity-jar-resolver

Public Methods

Method Description
Aggregate ( List dataStream ) : StreamData

Aggregate the specified list of StringBytes into a single structure.

AggregateLine ( Process process, StreamWriter stdin, StreamData data ) : void

Delegate method which can be attached to AsyncStreamReader.DataReceived to aggregate data until a new line is found before calling LineHandler.

Flush ( ) : void

Flush the internal buffer.

GetBufferedData ( int handle ) : List

Retrieve the currently buffered set of data. This allows the user to retrieve data before the end of a stream when a newline isn't present.

LineReader ( IOHandler handler = null ) : System.Collections.Generic

Initialize the instance.

Method Details

Aggregate() public static method

Aggregate the specified list of StringBytes into a single structure.
public static Aggregate ( List dataStream ) : StreamData
dataStream List Data to aggregate.
return StreamData

AggregateLine() public method

Delegate method which can be attached to AsyncStreamReader.DataReceived to aggregate data until a new line is found before calling LineHandler.
public AggregateLine ( Process process, StreamWriter stdin, StreamData data ) : void
process System.Diagnostics.Process
stdin System.IO.StreamWriter
data StreamData
return void

Flush() public method

Flush the internal buffer.
public Flush ( ) : void
return void

GetBufferedData() public method

Retrieve the currently buffered set of data. This allows the user to retrieve data before the end of a stream when a newline isn't present.
public GetBufferedData ( int handle ) : List
handle int Handle of the stream to query.
return List

LineReader() public method

Initialize the instance.
public LineReader ( IOHandler handler = null ) : System.Collections.Generic
handler IOHandler Called for each line read.
return System.Collections.Generic