Package system.io
Class StreamWriter
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.io.TextWriter
-
- system.io.StreamWriter
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
public class StreamWriter extends TextWriter
The base .NET class managing System.IO.StreamWriter, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.StreamWriter
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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: mscorlibstatic java.lang.StringclassNameQualified class name: System.IO.StreamWriterstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description StreamWriter()StreamWriter(java.lang.Object instance)Internal constructor.StreamWriter(java.lang.String path)StreamWriter(java.lang.String path, boolean append)StreamWriter(java.lang.String path, boolean append, Encoding encoding)StreamWriter(java.lang.String path, boolean append, Encoding encoding, int bufferSize)StreamWriter(Stream stream)StreamWriter(Stream stream, Encoding encoding)StreamWriter(Stream stream, Encoding encoding, int bufferSize)StreamWriter(Stream stream, Encoding encoding, int bufferSize, boolean leaveOpen)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StreamWritercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoStreamWriter, a cast assert is made to check if types are compatible.voidClose()voidFlush()TaskFlushAsync()booleangetAutoFlush()StreamgetBaseStream()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 TypevoidsetAutoFlush(boolean AutoFlush)voidsetJCOInstance(JCObject instance)voidWrite(char value)voidWrite(char[] buffer)voidWrite(char[] buffer, int index, int count)voidWrite(java.lang.String value)voidWrite(JCORefOut dupParam0)voidWrite(JCORefOut dupParam0, int dupParam1, int dupParam2)TaskWriteAsync(char value)TaskWriteAsync(char[] buffer, int index, int count)TaskWriteAsync(java.lang.String value)TaskWriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2)TaskWriteLineAsync()TaskWriteLineAsync(char value)TaskWriteLineAsync(char[] buffer, int index, int count)TaskWriteLineAsync(java.lang.String value)TaskWriteLineAsync(JCORefOut dupParam0, int dupParam1, int dupParam2)-
Methods inherited from class system.io.TextWriter
close, Dispose, getEncoding, getFormatProvider, getNewLine, setNewLine, Synchronized, 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
-
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.StreamWriter- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StreamWriter
public StreamWriter(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
StreamWriter
public StreamWriter() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
StreamWriter
public StreamWriter(Stream stream) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, SecurityException, NotSupportedException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException, IndexOutOfRangeException
-
StreamWriter
public StreamWriter(Stream stream, Encoding encoding) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, SecurityException, NotSupportedException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException, IndexOutOfRangeException
-
StreamWriter
public StreamWriter(Stream stream, Encoding encoding, int bufferSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, SecurityException, NotSupportedException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException, IndexOutOfRangeException
-
StreamWriter
public StreamWriter(Stream stream, Encoding encoding, int bufferSize, boolean leaveOpen) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, SecurityException, TypeLoadException, NotSupportedException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException
-
StreamWriter
public StreamWriter(java.lang.String path) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException, IndexOutOfRangeException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionIndexOutOfRangeException
-
StreamWriter
public StreamWriter(java.lang.String path, boolean append) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException, IndexOutOfRangeException- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionIndexOutOfRangeException
-
StreamWriter
public StreamWriter(java.lang.String path, boolean append, Encoding encoding) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException, IndexOutOfRangeException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionIndexOutOfRangeException
-
StreamWriter
public StreamWriter(java.lang.String path, boolean append, Encoding encoding, int bufferSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, IndexOutOfRangeException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException, IOException
-
-
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 StreamWriter cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoStreamWriter, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
StreamWriterinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
FlushAsync
public Task FlushAsync() throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException, SecurityException
- Overrides:
FlushAsyncin classTextWriter- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionObjectDisposedExceptionTaskSchedulerExceptionArgumentExceptionNotSupportedExceptionIndexOutOfRangeExceptionSecurityException
-
WriteAsync
public Task WriteAsync(char value) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
-
WriteAsync
public Task WriteAsync(char[] buffer, int index, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
-
WriteAsync
public Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
-
WriteAsync
public Task WriteAsync(java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
-
WriteLineAsync
public Task WriteLineAsync() throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException, ObjectDisposedException, SecurityException
- Overrides:
WriteLineAsyncin classTextWriter- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionTaskSchedulerExceptionArgumentExceptionNotSupportedExceptionIndexOutOfRangeExceptionObjectDisposedExceptionSecurityException
-
WriteLineAsync
public Task WriteLineAsync(char value) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
- Overrides:
WriteLineAsyncin classTextWriter- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionObjectDisposedExceptionTaskSchedulerExceptionArgumentExceptionNotSupportedExceptionIndexOutOfRangeExceptionSecurityExceptionNullReferenceException
-
WriteLineAsync
public Task WriteLineAsync(char[] buffer, int index, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
- Overrides:
WriteLineAsyncin classTextWriter- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionObjectDisposedExceptionTaskSchedulerExceptionNotSupportedExceptionIndexOutOfRangeExceptionSecurityExceptionNullReferenceException
-
WriteLineAsync
public Task WriteLineAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
- Overrides:
WriteLineAsyncin classTextWriter- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionObjectDisposedExceptionTaskSchedulerExceptionNotSupportedExceptionIndexOutOfRangeExceptionSecurityExceptionNullReferenceException
-
WriteLineAsync
public Task WriteLineAsync(java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
- Overrides:
WriteLineAsyncin classTextWriter- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionObjectDisposedExceptionTaskSchedulerExceptionArgumentExceptionNotSupportedExceptionIndexOutOfRangeExceptionSecurityExceptionNullReferenceException
-
Close
public void Close() throws java.lang.Throwable, ArgumentNullException- Overrides:
Closein classTextWriter- Throws:
java.lang.ThrowableArgumentNullException
-
Flush
public void Flush() throws java.lang.Throwable, InvalidOperationException, ObjectDisposedException- Overrides:
Flushin classTextWriter- Throws:
java.lang.ThrowableInvalidOperationExceptionObjectDisposedException
-
Write
public void Write(char value) throws java.lang.Throwable, InvalidOperationException, ObjectDisposedException- Overrides:
Writein classTextWriter- Throws:
java.lang.ThrowableInvalidOperationExceptionObjectDisposedException
-
Write
public void Write(char[] buffer) throws java.lang.Throwable, InvalidOperationException, ObjectDisposedException- Overrides:
Writein classTextWriter- Throws:
java.lang.ThrowableInvalidOperationExceptionObjectDisposedException
-
Write
public void Write(JCORefOut dupParam0) throws java.lang.Throwable, InvalidOperationException, ObjectDisposedException
- Overrides:
Writein classTextWriter- Throws:
java.lang.ThrowableInvalidOperationExceptionObjectDisposedException
-
Write
public void Write(char[] buffer, int index, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ObjectDisposedException- Overrides:
Writein classTextWriter- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionObjectDisposedException
-
Write
public void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ObjectDisposedException
- Overrides:
Writein classTextWriter- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionObjectDisposedException
-
Write
public void Write(java.lang.String value) throws java.lang.Throwable, InvalidOperationException, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException- Overrides:
Writein classTextWriter- Throws:
java.lang.ThrowableInvalidOperationExceptionObjectDisposedExceptionArgumentNullExceptionArgumentOutOfRangeException
-
getAutoFlush
public boolean getAutoFlush() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setAutoFlush
public void setAutoFlush(boolean AutoFlush) throws java.lang.Throwable, InvalidOperationException, ObjectDisposedException- Throws:
java.lang.ThrowableInvalidOperationExceptionObjectDisposedException
-
getBaseStream
public Stream getBaseStream() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-