ISessionInputBuffer.ReadLine Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| ReadLine() |
Reads the next line from the input buffer. |
| ReadLine(CharArrayBuffer) |
Reads the next line and appends it to a character buffer. |
ReadLine()
Reads the next line from the input buffer.
[Android.Runtime.Register("readLine", "()Ljava/lang/String;", "GetReadLineHandler:Org.Apache.Http.IO.ISessionInputBufferInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? ReadLine();
[<Android.Runtime.Register("readLine", "()Ljava/lang/String;", "GetReadLineHandler:Org.Apache.Http.IO.ISessionInputBufferInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ReadLine : unit -> string
Returns
The line without its CR and LF terminators, or null if the end of the stream is reached before any line data is read.
- Attributes
Exceptions
An I/O error occurs, or the configured maximum line length is exceeded.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ReadLine(CharArrayBuffer)
Reads the next line and appends it to a character buffer.
[Android.Runtime.Register("readLine", "(Lorg/apache/http/util/CharArrayBuffer;)I", "GetReadLine_Lorg_apache_http_util_CharArrayBuffer_Handler:Org.Apache.Http.IO.ISessionInputBufferInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int ReadLine(Org.Apache.Http.Util.CharArrayBuffer? buffer);
[<Android.Runtime.Register("readLine", "(Lorg/apache/http/util/CharArrayBuffer;)I", "GetReadLine_Lorg_apache_http_util_CharArrayBuffer_Handler:Org.Apache.Http.IO.ISessionInputBufferInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ReadLine : Org.Apache.Http.Util.CharArrayBuffer -> int
Parameters
- buffer
- CharArrayBuffer
The character buffer to which the line is appended, without its CR and LF terminators.
Returns
The line length reported by the buffer, excluding CR and LF, or -1 if the end of the stream is reached before any line data is read.
- Attributes
Exceptions
An I/O error occurs, or the configured maximum line length is exceeded.
Remarks
The Android implementation reports the number of encoded bytes in the line, not necessarily the number of decoded characters appended to buffer. These counts can differ for a non-ASCII character set. Existing characters in buffer are retained.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.