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=9.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.StringassemblyFullNameFully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.StringassemblyShortNameAssembly name: System.Private.CoreLibstatic java.lang.StringclassNameQualified class name: System.IO.StringWriterstatic JCTypeclassTypeThe 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 StringWritercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoStringWriter, a cast assert is made to check if types are compatible.voidClose()TaskFlushAsync()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeStringBuilderGetStringBuilder()voidsetJCOInstance(JCObject instance)voidWrite(char value)voidWrite(char[] buffer, int index, int count)voidWrite(java.lang.String value)voidWrite(JCORefOut dupParam0, int dupParam1, int dupParam2)voidWrite(StringBuilder value)TaskWriteAsync(char value)TaskWriteAsync(char[] buffer, int index, int count)TaskWriteAsync(java.lang.String value)TaskWriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2)TaskWriteAsync(StringBuilder value, CancellationToken cancellationToken)voidWriteLine(StringBuilder value)TaskWriteLineAsync(char value)TaskWriteLineAsync(char[] buffer, int index, int count)TaskWriteLineAsync(java.lang.String value)TaskWriteLineAsync(JCORefOut dupParam0, int dupParam1, int dupParam2)TaskWriteLineAsync(StringBuilder value, CancellationToken cancellationToken)-
Methods inherited from class system.io.TextWriter
close, CreateBroadcasting, 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=9.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.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
StringWriter
public StringWriter() throws java.lang.Throwable, ArgumentNullException, OutOfMemoryException, ArgumentException, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, NotSupportedException
-
StringWriter
public StringWriter(IFormatProvider formatProvider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullException
-
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, NullReferenceException, NotSupportedException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classTextWriter- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classTextWriter- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classTextWriter- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classTextWriter- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classTextWriter
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classTextWriter- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static StringWriter cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoStringWriter, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
StringWriterinstance- 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:
FlushAsyncin classTextWriter- Throws:
java.lang.Throwable
-
WriteAsync
public Task WriteAsync(char value) throws java.lang.Throwable
- Overrides:
WriteAsyncin classTextWriter- Throws:
java.lang.Throwable
-
WriteAsync
public Task WriteAsync(char[] buffer, int index, int count) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
- Overrides:
WriteAsyncin classTextWriter- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatException
-
WriteAsync
public Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
- Overrides:
WriteAsyncin classTextWriter- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFormatException
-
WriteAsync
public Task WriteAsync(java.lang.String value) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Overrides:
WriteAsyncin classTextWriter- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
WriteAsync
public Task WriteAsync(StringBuilder value, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, ArgumentException, ArrayTypeMismatchException, OutOfMemoryException
- Overrides:
WriteAsyncin classTextWriter- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionPlatformNotSupportedExceptionArgumentExceptionArrayTypeMismatchExceptionOutOfMemoryException
-
WriteLineAsync
public Task WriteLineAsync(char value) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException
- Overrides:
WriteLineAsyncin classTextWriter- Throws:
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionArgumentException
-
WriteLineAsync
public Task WriteLineAsync(char[] buffer, int index, int count) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException
- Overrides:
WriteLineAsyncin classTextWriter- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatException
-
WriteLineAsync
public Task WriteLineAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException
- Overrides:
WriteLineAsyncin classTextWriter- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatException
-
WriteLineAsync
public Task WriteLineAsync(java.lang.String value) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException
- Overrides:
WriteLineAsyncin classTextWriter- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionArgumentException
-
WriteLineAsync
public Task WriteLineAsync(StringBuilder value, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, InvalidOperationException, OutOfMemoryException, EventSourceException, ObjectDisposedException
- Overrides:
WriteLineAsyncin classTextWriter- Throws:
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionArgumentExceptionNotSupportedExceptionInvalidOperationExceptionOutOfMemoryExceptionEventSourceExceptionObjectDisposedException
-
Close
public void Close() throws java.lang.Throwable- Overrides:
Closein 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:
Writein classTextWriter- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionIndexOutOfRangeExceptionRankExceptionCultureNotFoundExceptionObjectDisposedExceptionOutOfMemoryException
-
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:
Writein classTextWriter- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionIndexOutOfRangeExceptionRankExceptionCultureNotFoundExceptionObjectDisposedExceptionOutOfMemoryException
-
Write
public void Write(StringBuilder value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OutOfMemoryException
- Overrides:
Writein classTextWriter- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionOutOfMemoryException
-
WriteLine
public void WriteLine(StringBuilder value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ObjectDisposedException, ArrayTypeMismatchException, OutOfMemoryException
- Overrides:
WriteLinein classTextWriter- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionObjectDisposedExceptionArrayTypeMismatchExceptionOutOfMemoryException
-
-