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, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: mscorlibstatic 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)
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
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)
-
Methods inherited from class system.io.TextWriter
close, Dispose, Flush, 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
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- 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, FormatException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
FormatException
ArgumentOutOfRangeException
-
StringWriter
public StringWriter(IFormatProvider formatProvider) throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
FormatException
ArgumentOutOfRangeException
-
StringWriter
public StringWriter(StringBuilder sb) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException
-
StringWriter
public StringWriter(StringBuilder sb, IFormatProvider formatProvider) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
-
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, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Overrides:
WriteAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
-
WriteAsync
public Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Overrides:
WriteAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
-
WriteAsync
public Task WriteAsync(java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Overrides:
WriteAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
-
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, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Overrides:
WriteLineAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
-
WriteLineAsync
public Task WriteLineAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Overrides:
WriteLineAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
-
WriteLineAsync
public Task WriteLineAsync(java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Overrides:
WriteLineAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
-
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, ObjectDisposedException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException
- Overrides:
Write
in classTextWriter
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentOutOfRangeException
InvalidOperationException
OutOfMemoryException
-
Write
public void Write(char[] buffer, int index, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException
- Overrides:
Write
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
ObjectDisposedException
InvalidOperationException
OutOfMemoryException
-
Write
public void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException
- Overrides:
Write
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
ObjectDisposedException
InvalidOperationException
OutOfMemoryException
-
Write
public void Write(java.lang.String value) throws java.lang.Throwable, ObjectDisposedException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException
- Overrides:
Write
in classTextWriter
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentOutOfRangeException
InvalidOperationException
OutOfMemoryException
-
-