public class StreamWriter extends TextWriter
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.StreamWriter
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.IO.StreamWriter
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
StreamWriter() |
StreamWriter(java.lang.Object instance)
Internal constructor.
|
StreamWriter(Stream stream) |
StreamWriter(Stream stream,
Encoding encoding) |
StreamWriter(Stream stream,
Encoding encoding,
int bufferSize) |
StreamWriter(Stream stream,
Encoding encoding,
int bufferSize,
boolean leaveOpen) |
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) |
| Modifier and Type | Method and Description |
|---|---|
static StreamWriter |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into StreamWriter, 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 name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
void |
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(JCORefOut dupParam0) |
void |
Write(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
void |
Write(java.lang.String value) |
Task |
WriteAsync(char value) |
Task |
WriteAsync(char[] buffer,
int index,
int count) |
Task |
WriteAsync(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
Task |
WriteAsync(java.lang.String value) |
Task |
WriteLineAsync() |
Task |
WriteLineAsync(char value) |
Task |
WriteLineAsync(char[] buffer,
int index,
int count) |
Task |
WriteLineAsync(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
Task |
WriteLineAsync(java.lang.String value) |
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, WriteLineAsyncCreateObjRef, GetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public StreamWriter()
throws java.lang.Throwable
java.lang.Throwablepublic StreamWriter(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic StreamWriter(Stream stream) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, SecurityException, NotSupportedException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException, IndexOutOfRangeException
public StreamWriter(Stream stream, Encoding encoding) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, SecurityException, NotSupportedException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException, IndexOutOfRangeException
public StreamWriter(Stream stream, Encoding encoding, int bufferSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, SecurityException, NotSupportedException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException, IndexOutOfRangeException
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
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
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionIndexOutOfRangeExceptionpublic 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
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionIndexOutOfRangeExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionIndexOutOfRangeExceptionpublic 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
public static StreamWriter cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into StreamWriter, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedStreamWriter instancejava.lang.Throwable - in case of error during cast operationpublic void Close()
throws java.lang.Throwable,
ArgumentNullException
Close in class TextWriterjava.lang.ThrowableArgumentNullExceptionpublic void Flush()
throws java.lang.Throwable,
InvalidOperationException,
ObjectDisposedException
Flush in class TextWriterjava.lang.ThrowableInvalidOperationExceptionObjectDisposedExceptionpublic Task FlushAsync() throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException, SecurityException
FlushAsync in class TextWriterjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionObjectDisposedExceptionTaskSchedulerExceptionArgumentExceptionNotSupportedExceptionIndexOutOfRangeExceptionSecurityExceptionpublic boolean getAutoFlush()
throws java.lang.Throwable
java.lang.Throwablepublic Stream getBaseStream() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class TextWriterString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class TextWriterString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class TextWriterObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class TextWriterString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class TextWriterJCType representing the CLR Type of the instantiated Classpublic void setAutoFlush(boolean AutoFlush)
throws java.lang.Throwable,
InvalidOperationException,
ObjectDisposedException
java.lang.ThrowableInvalidOperationExceptionObjectDisposedExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class TextWriterpublic void Write(char value)
throws java.lang.Throwable,
InvalidOperationException,
ObjectDisposedException
Write in class TextWriterjava.lang.ThrowableInvalidOperationExceptionObjectDisposedExceptionpublic void Write(char[] buffer)
throws java.lang.Throwable,
InvalidOperationException,
ObjectDisposedException
Write in class TextWriterjava.lang.ThrowableInvalidOperationExceptionObjectDisposedExceptionpublic void Write(char[] buffer,
int index,
int count)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentOutOfRangeException,
ArgumentException,
InvalidOperationException,
ObjectDisposedException
Write in class TextWriterjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionObjectDisposedExceptionpublic void Write(JCORefOut dupParam0) throws java.lang.Throwable, InvalidOperationException, ObjectDisposedException
Write in class TextWriterjava.lang.ThrowableInvalidOperationExceptionObjectDisposedExceptionpublic void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ObjectDisposedException
Write in class TextWriterjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionObjectDisposedExceptionpublic void Write(java.lang.String value)
throws java.lang.Throwable,
InvalidOperationException,
ObjectDisposedException,
ArgumentNullException,
ArgumentOutOfRangeException
Write in class TextWriterjava.lang.ThrowableInvalidOperationExceptionObjectDisposedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionpublic Task WriteAsync(char value) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
public Task WriteAsync(char[] buffer, int index, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
public Task WriteAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
public Task WriteAsync(java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
public Task WriteLineAsync() throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException, ObjectDisposedException, SecurityException
WriteLineAsync in class TextWriterjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionTaskSchedulerExceptionArgumentExceptionNotSupportedExceptionIndexOutOfRangeExceptionObjectDisposedExceptionSecurityExceptionpublic Task WriteLineAsync(char value) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
WriteLineAsync in class TextWriterjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionObjectDisposedExceptionTaskSchedulerExceptionArgumentExceptionNotSupportedExceptionIndexOutOfRangeExceptionSecurityExceptionNullReferenceExceptionpublic Task WriteLineAsync(char[] buffer, int index, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
WriteLineAsync in class TextWriterjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionObjectDisposedExceptionTaskSchedulerExceptionNotSupportedExceptionIndexOutOfRangeExceptionSecurityExceptionNullReferenceExceptionpublic Task WriteLineAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
WriteLineAsync in class TextWriterjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionObjectDisposedExceptionTaskSchedulerExceptionNotSupportedExceptionIndexOutOfRangeExceptionSecurityExceptionNullReferenceExceptionpublic Task WriteLineAsync(java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, TaskSchedulerException, ArgumentException, NotSupportedException, IndexOutOfRangeException, SecurityException, NullReferenceException
WriteLineAsync in class TextWriterjava.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionObjectDisposedExceptionTaskSchedulerExceptionArgumentExceptionNotSupportedExceptionIndexOutOfRangeExceptionSecurityExceptionNullReferenceException