Package system.io
Class StringWriter
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.io.TextWriter
-
- system.io.StringWriter
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class StringWriter extends TextWriter
The base .NET class managing System.IO.StringWriter, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.StringWriter
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.IO.StringWriterstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description StringWriter()
StringWriter(java.lang.Object instance)
Internal constructor.StringWriter(IFormatProvider formatProvider)
StringWriter(StringBuilder sb)
StringWriter(StringBuilder sb, IFormatProvider formatProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringWriter
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoStringWriter
, a cast assert is made to check if types are compatible.void
Close()
Task
FlushAsync()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeStringBuilder
GetStringBuilder()
void
setJCOInstance(JCObject instance)
void
Write(char value)
void
Write(char[] buffer, int index, int count)
void
Write(java.lang.String value)
void
Write(JCORefOut dupParam0, int dupParam1, int dupParam2)
void
Write(StringBuilder value)
Task
WriteAsync(char value)
Task
WriteAsync(char[] buffer, int index, int count)
Task
WriteAsync(java.lang.String value)
Task
WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2)
Task
WriteAsync(StringBuilder value, CancellationToken cancellationToken)
void
WriteLine(StringBuilder value)
Task
WriteLineAsync(char value)
Task
WriteLineAsync(char[] buffer, int index, int count)
Task
WriteLineAsync(java.lang.String value)
Task
WriteLineAsync(JCORefOut dupParam0, int dupParam1, int dupParam2)
Task
WriteLineAsync(StringBuilder value, CancellationToken cancellationToken)
-
Methods inherited from class system.io.TextWriter
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, WriteLineAsync
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.IO.StringWriter- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StringWriter
public StringWriter(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
StringWriter
public StringWriter() throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
OutOfMemoryException
ArgumentException
CultureNotFoundException
PlatformNotSupportedException
-
StringWriter
public StringWriter(IFormatProvider formatProvider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
-
StringWriter
public StringWriter(StringBuilder sb, IFormatProvider formatProvider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
StringWriter
public StringWriter(StringBuilder sb) throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
OutOfMemoryException
ArgumentException
CultureNotFoundException
PlatformNotSupportedException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classTextWriter
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classTextWriter
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classTextWriter
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classTextWriter
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classTextWriter
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classTextWriter
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static StringWriter cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoStringWriter
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
StringWriter
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
GetStringBuilder
public StringBuilder GetStringBuilder() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
FlushAsync
public Task FlushAsync() throws java.lang.Throwable
- Overrides:
FlushAsync
in classTextWriter
- Throws:
java.lang.Throwable
-
WriteAsync
public Task WriteAsync(char value) throws java.lang.Throwable
- Overrides:
WriteAsync
in classTextWriter
- Throws:
java.lang.Throwable
-
WriteAsync
public Task WriteAsync(char[] buffer, int index, int count) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException
- Overrides:
WriteAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
FormatException
-
WriteAsync
public Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException
- Overrides:
WriteAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
FormatException
-
WriteAsync
public Task WriteAsync(java.lang.String value) throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException
- Overrides:
WriteAsync
in classTextWriter
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentNullException
ArgumentOutOfRangeException
-
WriteAsync
public Task WriteAsync(StringBuilder value, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, ArgumentException, ArrayTypeMismatchException, OutOfMemoryException
- Overrides:
WriteAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ObjectDisposedException
PlatformNotSupportedException
ArgumentException
ArrayTypeMismatchException
OutOfMemoryException
-
WriteLineAsync
public Task WriteLineAsync(char value) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Overrides:
WriteLineAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
-
WriteLineAsync
public Task WriteLineAsync(char[] buffer, int index, int count) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
- Overrides:
WriteLineAsync
in classTextWriter
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
FormatException
-
WriteLineAsync
public Task WriteLineAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException
- Overrides:
WriteLineAsync
in classTextWriter
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
FormatException
-
WriteLineAsync
public Task WriteLineAsync(java.lang.String value) throws java.lang.Throwable, InvalidOperationException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Overrides:
WriteLineAsync
in classTextWriter
- Throws:
java.lang.Throwable
InvalidOperationException
PlatformNotSupportedException
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
-
WriteLineAsync
public Task WriteLineAsync(StringBuilder value, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, ArgumentException, NotSupportedException, OutOfMemoryException, EventSourceException, ObjectDisposedException
- Overrides:
WriteLineAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
PlatformNotSupportedException
ArgumentOutOfRangeException
ArrayTypeMismatchException
InvalidOperationException
ArgumentException
NotSupportedException
OutOfMemoryException
EventSourceException
ObjectDisposedException
-
Close
public void Close() throws java.lang.Throwable
- Overrides:
Close
in classTextWriter
- Throws:
java.lang.Throwable
-
Write
public void Write(char value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException
- Overrides:
Write
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
IndexOutOfRangeException
RankException
CultureNotFoundException
ObjectDisposedException
OutOfMemoryException
-
Write
public void Write(char[] buffer, int index, int count) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException
-
Write
public void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException
-
Write
public void Write(java.lang.String value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, RankException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException
- Overrides:
Write
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
IndexOutOfRangeException
RankException
CultureNotFoundException
ObjectDisposedException
OutOfMemoryException
-
Write
public void Write(StringBuilder value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OutOfMemoryException
- Overrides:
Write
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
OutOfMemoryException
-
WriteLine
public void WriteLine(StringBuilder value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ObjectDisposedException, ArrayTypeMismatchException, OutOfMemoryException
- Overrides:
WriteLine
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
ObjectDisposedException
ArrayTypeMismatchException
OutOfMemoryException
-
-