Click or drag to resize

StreamReader Class

Implements a CrestronIO.TextReader that reads characters from a byte stream in a particular encoding.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharp.CrestronIOTextReader
    Crestron.SimplSharp.CrestronIOStreamReader

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public class StreamReader : TextReader

The StreamReader type exposes the following members.

Constructors
 NameDescription
Public methodStreamReader(Stream) Initializes a new instance of the CrestronIO.StreamReader class for the specified stream.
Public methodStreamReader(String) Initializes a new instance of the CrestronIO.StreamReader class for the specified file name.
Public methodStreamReader(Stream, Boolean) Initializes a new instance of the CrestronIO.StreamReader class for the specified stream, with the specified byte order mark detection option.
Public methodStreamReader(Stream, Encoding) Initializes a new instance of the CrestronIO.StreamReader class for the specified stream, with the specified character encoding.
Public methodStreamReader(String, Boolean) Initializes a new instance of the CrestronIO.StreamReader class for the specified file name, with the specified byte order mark detection option.
Public methodStreamReader(String, Encoding) Initializes a new instance of the CrestronIO.StreamReader class for the specified file name, with the specified character encoding.
Public methodStreamReader(Stream, Encoding, Boolean) Initializes a new instance of the CrestronIO.StreamReader class for the specified stream, with the specified character encoding and byte order mark detection option.
Public methodStreamReader(String, Encoding, Boolean) Initializes a new instance of the CrestronIO.StreamReader class for the specified file name, with the specified character encoding and byte order mark detection option.
Public methodStreamReader(Stream, Encoding, Boolean, Int32) Initializes a new instance of the CrestronIO.StreamReader class for the specified stream, with the specified character encoding, byte order mark detection option, and buffer size.
Public methodStreamReader(String, Encoding, Boolean, Int32) Initializes a new instance of the CrestronIO.StreamReader class for the specified file name, with the specified character encoding, byte order mark detection option, and buffer size.
Top
Properties
 NameDescription
Public propertyBaseStream Returns the underlying stream.
Public propertyCurrentEncoding Gets the current character encoding that the current CrestronIO.StreamReader object is using.
Public propertyEndOfStream Gets a value that indicates whether the current stream position is at the end of the stream.
Top
Methods
 NameDescription
Public methodClose Closes the CrestronIO.TextReader and releases any system resources associated with the TextReader.
(Inherited from TextReader)
Public methodDiscardBufferedData Allows a CrestronIO.StreamReader object to discard its current data.
Public methodDispose Releases all resources used by the CrestronIO.TextReader object.
(Inherited from TextReader)
Protected methodDispose(Boolean) Closes the underlying stream, releases the unmanaged resources used by the CrestronIO.StreamReader, and optionally releases the managed resources.
(Overrides TextReaderDispose(Boolean))
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Destructor for StreamReader.
(Overrides ObjectFinalize)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodPeek Returns the next available character but does not consume it.
(Overrides TextReaderPeek)
Public methodRead Reads the next character from the input stream and advances the character position by one character.
(Overrides TextReaderRead)
Public methodRead(Char, Int32, Int32) Reads a maximum of count characters from the current stream into buffer, beginning at index.
(Overrides TextReaderRead(Char, Int32, Int32))
Public methodReadBlock Reads a maximum of count characters from the current stream, and writes the data to buffer, beginning at index.
(Overrides TextReaderReadBlock(Char, Int32, Int32))
Public methodReadLine Reads a line of characters from the current stream and returns the data as a string.
(Overrides TextReaderReadLine)
Public methodReadToEnd Reads the stream from the current position to the end of the stream.
(Overrides TextReaderReadToEnd)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberNull A CrestronIO.StreamReader object around an empty stream.
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also