Stream |
public class StreamWriter : TextWriter
The StreamWriter type exposes the following members.
| Name | Description | |
|---|---|---|
| StreamWriter(Stream) | Initializes a new instance of the CrestronIO.StreamWriter class for the specified stream, using UTF-8 encoding and the default buffer size. | |
| StreamWriter(String) | Initializes a new instance of the CrestronIO.StreamWriter class for the specified file on the specified path, using the default encoding and buffer size. | |
| StreamWriter(Stream, Encoding) | Initializes a new instance of the CrestronIO.StreamWriter class for the specified stream, using the specified encoding and the default buffer size. | |
| StreamWriter(String, Boolean) | Initializes a new instance of the CrestronIO.StreamWriter class for the specified file on the specified path, using the default encoding and buffer size. If the file exists, it can be either overwritten or appended to. If the file does not exist, this constructor creates a new file. | |
| StreamWriter(Stream, Encoding, Int32) | Initializes a new instance of the CrestronIO.StreamWriter class for the specified stream, using the specified encoding and buffer size. | |
| StreamWriter(String, Boolean, Encoding) | Initializes a new instance of the CrestronIO.StreamWriter class for the specified file on the specified path, using the specified encoding and default buffer size. If the file exists, it can be either overwritten or appended to. If the file does not exist, this constructor creates a new file. | |
| StreamWriter(String, Boolean, Encoding, Int32) | Initializes a new instance of the CrestronIO.StreamWriter class for the specified file on the specified path, using the specified encoding and buffer size. If the file exists, it can be either overwritten or appended to. If the file does not exist, this constructor creates a new file. |
| Name | Description | |
|---|---|---|
| AutoFlush | Gets or sets a value indicating whether the CrestronIO.StreamWriter will flush its buffer to the underlying stream after every call to CrestronIO.StreamWriter.Write(System.Char). | |
| BaseStream | Gets the underlying stream that interfaces with a backing store. | |
| Encoding |
Gets the System.Text.Encoding in which the output is written.
(Overrides TextWriterEncoding) | |
| FormatProvider |
Gets an object that controls formatting.
(Inherited from TextWriter) | |
| NewLine |
Gets or sets the line terminator string used by the current TextWriter.
(Overrides TextWriterNewLine) |
| Name | Description | |
|---|---|---|
| Close |
Closes the current writer and releases any system resources associated with
the writer.
(Inherited from TextWriter) | |
| Dispose |
Releases all resources used by the CrestronIO.TextWriter object.
(Inherited from TextWriter) | |
| Dispose(Boolean) |
Releases the unmanaged resources used by the CrestronIO.StreamWriter and optionally
releases the managed resources.
(Overrides TextWriterDispose(Boolean)) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize |
Destructor for StreamWriter.
(Overrides ObjectFinalize) | |
| Flush |
Clears all buffers for the current writer and causes any buffered data to
be written to the underlying stream.
(Overrides TextWriterFlush) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) | |
| Write(Boolean) |
Writes the text representation of a Boolean value to the text stream.
(Overrides TextWriterWrite(Boolean)) | |
| Write(Char) |
Writes a character to the text stream.
(Overrides TextWriterWrite(Char)) | |
| Write(Char) |
Writes a character array to the text stream.
(Overrides TextWriterWrite(Char)) | |
| Write(Decimal) |
Writes the text representation of a decimal value to the text stream.
(Overrides TextWriterWrite(Decimal)) | |
| Write(Double) |
Writes the text representation of an 8-byte floating-point value to the text
stream.
(Overrides TextWriterWrite(Double)) | |
| Write(Int32) |
Writes the text representation of a 4-byte signed integer to the text stream.
(Overrides TextWriterWrite(Int32)) | |
| Write(Int64) |
Writes the text representation of an 8-byte signed integer to the text stream.
(Overrides TextWriterWrite(Int64)) | |
| Write(Object) |
Writes the text representation of an object to the text stream by calling
ToString on that object.
(Overrides TextWriterWrite(Object)) | |
| Write(Single) |
Writes the text representation of a 4-byte floating-point value to the text
stream.
(Overrides TextWriterWrite(Single)) | |
| Write(String) |
Writes a string to the text stream.
(Overrides TextWriterWrite(String)) | |
| Write(UInt32) |
Writes the text representation of a 4-byte unsigned integer to the text stream.
(Overrides TextWriterWrite(UInt32)) | |
| Write(UInt64) |
Writes the text representation of an 8-byte unsigned integer to the text
stream.
(Overrides TextWriterWrite(UInt64)) | |
| Write(String, Object) |
Writes out a formatted string, using the same semantics as System.String.Format(System.String,System.Object).
(Overrides TextWriterWrite(String, Object)) | |
| Write(String, Object) |
Writes out a formatted string, using the same semantics as System.String.Format(System.String,System.Object).
(Overrides TextWriterWrite(String, Object)) | |
| Write(Char, Int32, Int32) |
Writes a subarray of characters to the text stream.
(Overrides TextWriterWrite(Char, Int32, Int32)) | |
| Write(String, Object, Object) |
Writes out a formatted string, using the same semantics as System.String.Format(System.String,System.Object).
(Overrides TextWriterWrite(String, Object, Object)) | |
| WriteLine |
Writes a line terminator to the text stream.
(Overrides TextWriterWriteLine) | |
| WriteLine(Boolean) |
Writes the text representation of a Boolean followed by a line terminator
to the text stream.
(Overrides TextWriterWriteLine(Boolean)) | |
| WriteLine(Char) |
Writes a character followed by a line terminator to the text stream.
(Overrides TextWriterWriteLine(Char)) | |
| WriteLine(Char) |
Writes an array of characters followed by a line terminator to the text stream.
(Overrides TextWriterWriteLine(Char)) | |
| WriteLine(Decimal) |
Writes the text representation of a decimal value followed by a line terminator
to the text stream.
(Overrides TextWriterWriteLine(Decimal)) | |
| WriteLine(Double) |
Writes the text representation of a 8-byte floating-point value followed
by a line terminator to the text stream.
(Overrides TextWriterWriteLine(Double)) | |
| WriteLine(Int32) |
Writes the text representation of a 4-byte signed integer followed by a line
terminator to the text stream.
(Overrides TextWriterWriteLine(Int32)) | |
| WriteLine(Int64) |
Writes the text representation of an 8-byte signed integer followed by a
line terminator to the text stream.
(Overrides TextWriterWriteLine(Int64)) | |
| WriteLine(Object) |
Writes the text representation of an object by calling ToString on this object,
followed by a line terminator to the text stream.
(Overrides TextWriterWriteLine(Object)) | |
| WriteLine(Single) |
Writes the text representation of a 4-byte floating-point value followed
by a line terminator to the text stream.
(Overrides TextWriterWriteLine(Single)) | |
| WriteLine(String) |
Writes a string followed by a line terminator to the text stream.
(Overrides TextWriterWriteLine(String)) | |
| WriteLine(UInt32) |
Writes the text representation of a 4-byte unsigned integer followed by a
line terminator to the text stream.
(Overrides TextWriterWriteLine(UInt32)) | |
| WriteLine(UInt64) |
Writes the text representation of an 8-byte unsigned integer followed by
a line terminator to the text stream.
(Overrides TextWriterWriteLine(UInt64)) | |
| WriteLine(String, Object) |
Writes out a formatted string and a new line, using the same semantics as
System.String.Format(System.String,System.Object).
(Overrides TextWriterWriteLine(String, Object)) | |
| WriteLine(String, Object) |
Writes out a formatted string and a new line, using the same semantics as
System.String.Format(System.String,System.Object).
(Overrides TextWriterWriteLine(String, Object)) | |
| WriteLine(Char, Int32, Int32) |
Writes a subarray of characters followed by a line terminator to the text
stream.
(Overrides TextWriterWriteLine(Char, Int32, Int32)) | |
| WriteLine(String, Object, Object) |
Writes out a formatted string and a new line, using the same semantics as
System.String.Format(System.String,System.Object).
(Overrides TextWriterWriteLine(String, Object, Object)) |
| Name | Description | |
|---|---|---|
| CoreNewLine |
Stores the new line characters used for this TextWriter.
(Inherited from TextWriter) | |
| Null | Provides a StreamWriter with no backing store that can be written to, but not read from. |