Dart.PowerTCP.SslSockets Namespace > SegmentedStream Class > Read Method : Read(String,Int32,Boolean) Method |
Read data from the stream until a delimiter is reached.
[Visual Basic]
Overloads Public Function Read( _
ByVal delimiter As String, _
ByVal maxLength As Integer, _
ByRef found As Boolean _
) As String
A string representation of the bytes read.
Exception | Description |
---|---|
IOException | Thrown when the stream is not Readable. |
This method reads data from the stream until delimiter is found or the end of the stream is reached.
This method is useful for reading until a sequence of characters is found. A good example of this is receiving an email message when using the POP protocol. When sending a POP mail message, a POP server will delimit the end of the message with <CRLF>.<CRLF>. Using this method you could simply read the data until this sequence is found, at which point the method would return.
If the delimiter is found, found is true, otherwise found is false.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
SegmentedStream Class | SegmentedStream Members | Overload List
Send comments on this topic.
Documentation version 1.1.2.0.
© 2008 Dart Communications. All rights reserved.