public class StringWriter extends TextWriter
.NET documentation at https://learn.microsoft.com/dotnet/api/System.IO.StringWriter
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.IO.StringWriter
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
StringWriter()
Initializes a new instance by invoking the .NET constructor.
|
StringWriter(IFormatProvider formatProvider)
Initializes a new instance by invoking the .NET constructor.
|
StringWriter(java.lang.Object instance)
Internal constructor.
|
StringWriter(StringBuilder sb)
Initializes a new instance by invoking the .NET constructor.
|
StringWriter(StringBuilder sb,
IFormatProvider formatProvider)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static StringWriter |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into StringWriter, a cast assert is made to check if types are compatible. |
void |
Close()
Invokes the .NET member Close.
|
Task |
FlushAsync()
Invokes the .NET member FlushAsync.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
StringBuilder |
GetStringBuilder()
Invokes the .NET member GetStringBuilder.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
Write(char value)
Invokes the .NET member Write.
|
void |
Write(char[] buffer,
int index,
int count)
Invokes the .NET member Write.
|
void |
Write(JCORefOut dupParam0,
int dupParam1,
int dupParam2)
Invokes the .NET member Write.
|
void |
Write(java.lang.String value)
Invokes the .NET member Write.
|
void |
Write(StringBuilder value)
Invokes the .NET member Write.
|
Task |
WriteAsync(char value)
Invokes the .NET member WriteAsync.
|
Task |
WriteAsync(char[] buffer,
int index,
int count)
Invokes the .NET member WriteAsync.
|
Task |
WriteAsync(JCORefOut dupParam0,
int dupParam1,
int dupParam2)
Invokes the .NET member WriteAsync.
|
Task |
WriteAsync(ReadOnlyMemory_1 buffer,
CancellationToken cancellationToken)
Invokes the .NET member WriteAsync.
|
Task |
WriteAsync(java.lang.String value)
Invokes the .NET member WriteAsync.
|
Task |
WriteAsync(StringBuilder value,
CancellationToken cancellationToken)
Invokes the .NET member WriteAsync.
|
void |
WriteLine(StringBuilder value)
Invokes the .NET member WriteLine.
|
Task |
WriteLineAsync(char value)
Invokes the .NET member WriteLineAsync.
|
Task |
WriteLineAsync(char[] buffer,
int index,
int count)
Invokes the .NET member WriteLineAsync.
|
Task |
WriteLineAsync(JCORefOut dupParam0,
int dupParam1,
int dupParam2)
Invokes the .NET member WriteLineAsync.
|
Task |
WriteLineAsync(ReadOnlyMemory_1 buffer,
CancellationToken cancellationToken)
Invokes the .NET member WriteLineAsync.
|
Task |
WriteLineAsync(java.lang.String value)
Invokes the .NET member WriteLineAsync.
|
Task |
WriteLineAsync(StringBuilder value,
CancellationToken cancellationToken)
Invokes the .NET member WriteLineAsync.
|
close, Dispose, DisposeAsync, Flush, FlushAsync, getEncoding, getFormatProvider, getNewLine, setNewLine, Synchronized, Write, Write, Write, Write, Write, Write, Write, Write, Write, Write, Write, Write, Write, Write, Write, WriteAsync, WriteAsync, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLine, WriteLineAsync, WriteLineAsync, WriteLineAsyncGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public StringWriter()
throws java.lang.Throwable,
ArgumentNullException,
OutOfMemoryException,
ArgumentException,
CultureNotFoundException,
PlatformNotSupportedException
java.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic StringWriter(IFormatProvider formatProvider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
formatProvider - the argument of type IFormatProviderjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic StringWriter(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic StringWriter(StringBuilder sb) throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException
sb - the argument of type StringBuilderjava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic StringWriter(StringBuilder sb, IFormatProvider formatProvider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
sb - the argument of type StringBuilderformatProvider - the argument of type IFormatProviderjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static StringWriter cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into StringWriter, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedStringWriter instancejava.lang.Throwable - in case of error during cast operationpublic void Close()
throws java.lang.Throwable
Close in class TextWriterjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task FlushAsync() throws java.lang.Throwable
FlushAsync in class TextWriterjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class TextWriterpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class TextWriterpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class TextWriternull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class TextWriterpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class TextWriterpublic StringBuilder GetStringBuilder() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class TextWriterinstance - the new underlying objectpublic void Write(char value)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException,
OutOfMemoryException
Write in class TextWritervalue - the argument of type charjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void Write(char[] buffer,
int index,
int count)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
OutOfMemoryException
Write in class TextWriterbuffer - the argument of type char[]index - the argument of type intcount - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException
Write in class TextWriterdupParam0 - the argument of type JCORefOutdupParam1 - the argument of type intdupParam2 - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void Write(java.lang.String value)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
IndexOutOfRangeException,
RankException,
CultureNotFoundException,
ObjectDisposedException,
OutOfMemoryException
Write in class TextWritervalue - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void Write(StringBuilder value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OutOfMemoryException
Write in class TextWritervalue - the argument of type StringBuilderjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic Task WriteAsync(char value) throws java.lang.Throwable
WriteAsync in class TextWritervalue - the argument of type charjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task WriteAsync(char[] buffer, int index, int count) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException
WriteAsync in class TextWriterbuffer - the argument of type char[]index - the argument of type intcount - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itpublic Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException
WriteAsync in class TextWriterdupParam0 - the argument of type JCORefOutdupParam1 - the argument of type intdupParam2 - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itpublic Task WriteAsync(ReadOnlyMemory_1 buffer, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
WriteAsync in class TextWriterbuffer - the argument of type ReadOnlyMemory_1cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic Task WriteAsync(java.lang.String value) throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException
WriteAsync in class TextWritervalue - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic Task WriteAsync(StringBuilder value, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, ArgumentException, ArrayTypeMismatchException, OutOfMemoryException
WriteAsync in class TextWritervalue - the argument of type StringBuildercancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void WriteLine(StringBuilder value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ObjectDisposedException, ArrayTypeMismatchException, OutOfMemoryException
WriteLine in class TextWritervalue - the argument of type StringBuilderjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic Task WriteLineAsync(char value) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
WriteLineAsync in class TextWritervalue - the argument of type charjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itpublic Task WriteLineAsync(char[] buffer, int index, int count) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
WriteLineAsync in class TextWriterbuffer - the argument of type char[]index - the argument of type intcount - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itpublic Task WriteLineAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
WriteLineAsync in class TextWriterdupParam0 - the argument of type JCORefOutdupParam1 - the argument of type intdupParam2 - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itpublic Task WriteLineAsync(ReadOnlyMemory_1 buffer, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
WriteLineAsync in class TextWriterbuffer - the argument of type ReadOnlyMemory_1cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic Task WriteLineAsync(java.lang.String value) throws java.lang.Throwable, InvalidOperationException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
WriteLineAsync in class TextWritervalue - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itpublic Task WriteLineAsync(StringBuilder value, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, ArgumentException, NotSupportedException, OutOfMemoryException, EventSourceException, ObjectDisposedException
WriteLineAsync in class TextWritervalue - the argument of type StringBuildercancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itEventSourceException - if the .NET member raises itObjectDisposedException - if the .NET member raises it