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.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.StreamWriterstatic JCType
classType
The 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 StreamWriter
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoStreamWriter
, a cast assert is made to check if types are compatible.void
Close()
void
Flush()
Task
FlushAsync()
boolean
getAutoFlush()
Stream
getBaseStream()
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 Typevoid
setAutoFlush(boolean AutoFlush)
void
setJCOInstance(JCObject instance)
void
Write(char value)
void
Write(char[] buffer)
void
Write(char[] buffer, int index, int count)
void
Write(java.lang.String value)
void
Write(JCORefOut dupParam0)
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()
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, 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.Throwable
Internal 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.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
FormatException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
InvalidOperationException
NullReferenceException
SecurityException
IndexOutOfRangeException
-
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.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
FormatException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
InvalidOperationException
NullReferenceException
SecurityException
IndexOutOfRangeException
-
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.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
InvalidOperationException
NullReferenceException
SecurityException
IndexOutOfRangeException
-
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: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 StreamWriter cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoStreamWriter
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
StreamWriter
instance- 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:
FlushAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
ObjectDisposedException
TaskSchedulerException
ArgumentException
NotSupportedException
IndexOutOfRangeException
SecurityException
-
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:
WriteLineAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
TaskSchedulerException
ArgumentException
NotSupportedException
IndexOutOfRangeException
ObjectDisposedException
SecurityException
-
WriteLineAsync
public Task WriteLineAsync(char value) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
- Overrides:
WriteLineAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
ObjectDisposedException
TaskSchedulerException
ArgumentException
NotSupportedException
IndexOutOfRangeException
SecurityException
NullReferenceException
-
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:
WriteLineAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
InvalidOperationException
ObjectDisposedException
TaskSchedulerException
NotSupportedException
IndexOutOfRangeException
SecurityException
NullReferenceException
-
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:
WriteLineAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
InvalidOperationException
ObjectDisposedException
TaskSchedulerException
NotSupportedException
IndexOutOfRangeException
SecurityException
NullReferenceException
-
WriteLineAsync
public Task WriteLineAsync(java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
- Overrides:
WriteLineAsync
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
ObjectDisposedException
TaskSchedulerException
ArgumentException
NotSupportedException
IndexOutOfRangeException
SecurityException
NullReferenceException
-
Close
public void Close() throws java.lang.Throwable, ArgumentNullException
- Overrides:
Close
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
-
Flush
public void Flush() throws java.lang.Throwable, InvalidOperationException, ObjectDisposedException
- Overrides:
Flush
in classTextWriter
- Throws:
java.lang.Throwable
InvalidOperationException
ObjectDisposedException
-
Write
public void Write(char value) throws java.lang.Throwable, InvalidOperationException, ObjectDisposedException
- Overrides:
Write
in classTextWriter
- Throws:
java.lang.Throwable
InvalidOperationException
ObjectDisposedException
-
Write
public void Write(char[] buffer) throws java.lang.Throwable, InvalidOperationException, ObjectDisposedException
- Overrides:
Write
in classTextWriter
- Throws:
java.lang.Throwable
InvalidOperationException
ObjectDisposedException
-
Write
public void Write(JCORefOut dupParam0) throws java.lang.Throwable, InvalidOperationException, ObjectDisposedException
- Overrides:
Write
in classTextWriter
- Throws:
java.lang.Throwable
InvalidOperationException
ObjectDisposedException
-
Write
public void Write(char[] buffer, int index, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ObjectDisposedException
- Overrides:
Write
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
InvalidOperationException
ObjectDisposedException
-
Write
public void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ObjectDisposedException
- Overrides:
Write
in classTextWriter
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
InvalidOperationException
ObjectDisposedException
-
Write
public void Write(java.lang.String value) throws java.lang.Throwable, InvalidOperationException, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException
- Overrides:
Write
in classTextWriter
- Throws:
java.lang.Throwable
InvalidOperationException
ObjectDisposedException
ArgumentNullException
ArgumentOutOfRangeException
-
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.Throwable
InvalidOperationException
ObjectDisposedException
-
getBaseStream
public Stream getBaseStream() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-