public class TextWriterTraceListener extends TraceListener
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Diagnostics.TextWriterTraceListener
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: System.Diagnostics.TextWriterTraceListener, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Diagnostics.TextWriterTraceListener
|
static java.lang.String |
className
Qualified class name: System.Diagnostics.TextWriterTraceListener
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
TextWriterTraceListener() |
TextWriterTraceListener(java.lang.Object instance)
Internal constructor.
|
TextWriterTraceListener(Stream stream) |
TextWriterTraceListener(Stream stream,
java.lang.String name) |
TextWriterTraceListener(java.lang.String fileName) |
TextWriterTraceListener(java.lang.String fileName,
java.lang.String name) |
TextWriterTraceListener(TextWriter writer) |
TextWriterTraceListener(TextWriter writer,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static TextWriterTraceListener |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into TextWriterTraceListener, a cast assert is made to check if types are compatible. |
void |
Close() |
void |
Flush() |
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
|
TextWriter |
getWriter() |
void |
setJCOInstance(JCObject instance) |
void |
setWriter(TextWriter Writer) |
void |
Write(java.lang.String message) |
void |
WriteLine(java.lang.String message) |
close, Dispose, Fail, Fail, getAttributes, getFilter, getIndentLevel, getIndentSize, getIsThreadSafe, getName, getTraceOutputOptions, setFilter, setIndentLevel, setIndentSize, setName, setTraceOutputOptions, TraceData, TraceData, TraceEvent, TraceEvent, TraceEvent, TraceTransfer, Write, Write, Write, WriteLine, WriteLine, WriteLineGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public TextWriterTraceListener()
throws java.lang.Throwable
java.lang.Throwablepublic TextWriterTraceListener(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic TextWriterTraceListener(Stream stream) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException
public TextWriterTraceListener(Stream stream, java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException
public TextWriterTraceListener(java.lang.String fileName)
throws java.lang.Throwable
java.lang.Throwablepublic TextWriterTraceListener(java.lang.String fileName,
java.lang.String name)
throws java.lang.Throwable
java.lang.Throwablepublic TextWriterTraceListener(TextWriter writer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionpublic TextWriterTraceListener(TextWriter writer, java.lang.String name) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static TextWriterTraceListener cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into TextWriterTraceListener, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTextWriterTraceListener instancejava.lang.Throwable - in case of error during cast operationpublic void Close()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException
Close in class TraceListenerjava.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionpublic void Flush()
throws java.lang.Throwable,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentNullException,
IndexOutOfRangeException,
ArgumentException,
NotSupportedException,
CultureNotFoundException,
FormatException
Flush in class TraceListenerjava.lang.ThrowableArgumentOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentNullExceptionIndexOutOfRangeExceptionArgumentExceptionNotSupportedExceptionCultureNotFoundExceptionFormatExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class TraceListenerString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class TraceListenerString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class TraceListenerObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class TraceListenerString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class TraceListenerJCType representing the CLR Type of the instantiated Classpublic TextWriter getWriter() throws java.lang.Throwable, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentNullException, IndexOutOfRangeException, ArgumentException, NotSupportedException, CultureNotFoundException, FormatException
public void setJCOInstance(JCObject instance)
setJCOInstance in class TraceListenerpublic void setWriter(TextWriter Writer) throws java.lang.Throwable
java.lang.Throwablepublic void Write(java.lang.String message)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentNullException,
IndexOutOfRangeException,
ArgumentException,
NotSupportedException,
CultureNotFoundException,
FormatException
Write in class TraceListenerjava.lang.ThrowableArgumentOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentNullExceptionIndexOutOfRangeExceptionArgumentExceptionNotSupportedExceptionCultureNotFoundExceptionFormatExceptionpublic void WriteLine(java.lang.String message)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentNullException,
IndexOutOfRangeException,
ArgumentException,
NotSupportedException,
CultureNotFoundException,
FormatException
WriteLine in class TraceListenerjava.lang.ThrowableArgumentOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentNullExceptionIndexOutOfRangeExceptionArgumentExceptionNotSupportedExceptionCultureNotFoundExceptionFormatException