System.IO.StreamWriter

E697501

System.IO.StreamWriter is a .NET class used to write characters to streams such as files, memory, or network resources with support for encoding and buffering.

All labels observed (4)

How this entity was disambiguated

Statements (50)

Predicate Object
instanceOf .NET class
text writer
assembly System.IO
System.Runtime
linked to: System.Runtime.dll

mscorlib
linked to: mscorlib.dll
autoFlushEffect when AutoFlush is true, data is flushed to the underlying stream after every write
baseClass System.IO.TextWriter
bufferingBehavior writes are buffered by default
category I/O
defaultEncoding UTF-8
documentation https://learn.microsoft.com/dotnet/api/system.io.streamwriter
encodingSelection encoding can be specified via constructor
hasConstructor StreamWriter(System.IO.Stream)
StreamWriter(System.IO.Stream,System.Text.Encoding)
StreamWriter(System.String)
StreamWriter(System.String,System.Boolean)
StreamWriter(System.String,System.Boolean,System.Text.Encoding)
StreamWriter(System.String,System.Boolean,System.Text.Encoding,System.Int32)
hasMethod Close()
Dispose()
Flush()
Write(System.Char)
Write(System.String)
WriteLine()
WriteLine(System.String)
hasProperty AutoFlush
BaseStream
Encoding
NewLine
implements System.IDisposable
inheritsFrom System.IO.TextWriter
introducedIn .NET Framework 1.0
linked to: .NET Framework
isDisposable true
isPublic true
isSealed true
namespace System.IO
platform .NET 5+
linked to: .NET (5 and later)

.NET Core
.NET Framework
purpose write characters to a stream
relatedTo System.IO.File
System.IO.StreamReader
supports buffering
file output
memory streams
network streams
text encoding
threadSafety instance members are not guaranteed to be thread-safe
usagePattern commonly used with using statement for deterministic disposal
writes sequential text data

How these facts were elicited

Referenced by (8)

Full triples — surface form annotated when it differs from this entity's canonical label.

System.IO containsType System.IO.StreamWriter
System.IO.Stream usedWith System.IO.StreamWriter
System.IO.BinaryWriter relatedClass System.IO.StreamWriter
System.IO.StreamWriter hasConstructor StreamWriter(System.String)
linked to: System.IO.StreamWriter
System.IO.StreamWriter hasConstructor StreamWriter(System.String,System.Boolean)
linked to: System.IO.StreamWriter
System.IO.StreamWriter hasConstructor StreamWriter(System.String,System.Boolean,System.Text.Encoding)
linked to: System.IO.StreamWriter
System.IO.TextWriter derivedClass System.IO.StreamWriter
System.IO.IOException canBeThrownBy System.IO.StreamWriter