public class StreamReader extends TextReader
.NET documentation at https://learn.microsoft.com/dotnet/api/System.IO.StreamReader
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.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.IO.StreamReader
|
static org.mases.jcobridge.JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
StreamReader() |
StreamReader(java.lang.Object instance)
Internal constructor.
|
StreamReader(Stream stream) |
StreamReader(Stream stream,
boolean detectEncodingFromByteOrderMarks) |
StreamReader(Stream stream,
Encoding encoding) |
StreamReader(Stream stream,
Encoding encoding,
boolean detectEncodingFromByteOrderMarks) |
StreamReader(Stream stream,
Encoding encoding,
boolean detectEncodingFromByteOrderMarks,
int bufferSize) |
StreamReader(Stream stream,
Encoding encoding,
boolean detectEncodingFromByteOrderMarks,
int bufferSize,
boolean leaveOpen) |
StreamReader(java.lang.String path) |
StreamReader(java.lang.String path,
boolean detectEncodingFromByteOrderMarks) |
StreamReader(java.lang.String path,
Encoding encoding) |
StreamReader(java.lang.String path,
Encoding encoding,
boolean detectEncodingFromByteOrderMarks) |
StreamReader(java.lang.String path,
Encoding encoding,
boolean detectEncodingFromByteOrderMarks,
FileStreamOptions options) |
StreamReader(java.lang.String path,
Encoding encoding,
boolean detectEncodingFromByteOrderMarks,
int bufferSize) |
StreamReader(java.lang.String path,
FileStreamOptions options) |
| Modifier and Type | Method and Description |
|---|---|
static StreamReader |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into StreamReader, a cast assert is made to check if types are compatible. |
void |
Close() |
void |
DiscardBufferedData() |
Stream |
getBaseStream() |
Encoding |
getCurrentEncoding() |
boolean |
getEndOfStream() |
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
|
org.mases.jcobridge.JCType |
getJCOType()
Returns the instantiated class Type
|
int |
Peek() |
int |
Read() |
int |
Read(char[] buffer,
int index,
int count) |
int |
Read(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
Task_1 |
ReadAsync(char[] buffer,
int index,
int count) |
Task_1 |
ReadAsync(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
ValueTask_1 |
ReadAsync(Memory_1 buffer,
CancellationToken cancellationToken) |
int |
ReadBlock(char[] buffer,
int index,
int count) |
int |
ReadBlock(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
Task_1 |
ReadBlockAsync(char[] buffer,
int index,
int count) |
Task_1 |
ReadBlockAsync(JCORefOut dupParam0,
int dupParam1,
int dupParam2) |
ValueTask_1 |
ReadBlockAsync(Memory_1 buffer,
CancellationToken cancellationToken) |
java.lang.String |
ReadLine() |
Task_1 |
ReadLineAsync() |
ValueTask_1 |
ReadLineAsync(CancellationToken cancellationToken) |
java.lang.String |
ReadToEnd() |
Task_1 |
ReadToEndAsync() |
Task_1 |
ReadToEndAsync(CancellationToken cancellationToken) |
void |
setJCOInstance(org.mases.jcobridge.JCObject instance) |
close, Dispose, SynchronizedGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public static org.mases.jcobridge.JCType classType
JCTypepublic StreamReader()
throws java.lang.Throwable
java.lang.Throwablepublic StreamReader(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic StreamReader(Stream stream) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
public StreamReader(Stream stream, boolean detectEncodingFromByteOrderMarks) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public StreamReader(Stream stream, Encoding encoding) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public StreamReader(Stream stream, Encoding encoding, boolean detectEncodingFromByteOrderMarks) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public StreamReader(Stream stream, Encoding encoding, boolean detectEncodingFromByteOrderMarks, int bufferSize) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
public StreamReader(Stream stream, Encoding encoding, boolean detectEncodingFromByteOrderMarks, int bufferSize, boolean leaveOpen) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public StreamReader(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionpublic StreamReader(java.lang.String path,
boolean detectEncodingFromByteOrderMarks)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
FormatException,
SerializationException
public StreamReader(java.lang.String path,
Encoding encoding)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
FormatException,
SerializationException
public StreamReader(java.lang.String path,
Encoding encoding,
boolean detectEncodingFromByteOrderMarks)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
FormatException,
SerializationException
public StreamReader(java.lang.String path,
Encoding encoding,
boolean detectEncodingFromByteOrderMarks,
FileStreamOptions options)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
OutOfMemoryException,
InvalidOperationException,
SerializationException,
IOException
public StreamReader(java.lang.String path,
Encoding encoding,
boolean detectEncodingFromByteOrderMarks,
int bufferSize)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
SerializationException
public StreamReader(java.lang.String path,
FileStreamOptions options)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
OutOfMemoryException,
NotSupportedException,
SerializationException,
IOException
public static StreamReader cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into StreamReader, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedStreamReader instancejava.lang.Throwable - in case of error during cast operationpublic void Close()
throws java.lang.Throwable
Close in class TextReaderjava.lang.Throwablepublic void DiscardBufferedData()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
public Stream getBaseStream() throws java.lang.Throwable
java.lang.Throwablepublic Encoding getCurrentEncoding() throws java.lang.Throwable
java.lang.Throwablepublic boolean getEndOfStream()
throws java.lang.Throwable,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException,
ArgumentException
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class TextReaderString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class TextReaderString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class TextReaderObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class TextReaderString representing the name used to allocated the object
in CLR contextpublic org.mases.jcobridge.JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class TextReaderJCType representing the CLR Type of the instantiated Classpublic int Peek()
throws java.lang.Throwable,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException,
ArgumentException
Peek in class TextReaderjava.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionArgumentExceptionpublic int Read()
throws java.lang.Throwable,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException,
ArgumentException
Read in class TextReaderjava.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionArgumentExceptionpublic int Read(char[] buffer,
int index,
int count)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException
public int Read(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
public Task_1 ReadAsync(char[] buffer, int index, int count) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IOException, TaskSchedulerException, OutOfMemoryException, EventSourceException
ReadAsync in class TextReaderjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionNullReferenceExceptionIOExceptionTaskSchedulerExceptionOutOfMemoryExceptionEventSourceExceptionpublic Task_1 ReadAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException, IOException, TaskSchedulerException, OutOfMemoryException, EventSourceException
ReadAsync in class TextReaderjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionNullReferenceExceptionIOExceptionTaskSchedulerExceptionOutOfMemoryExceptionEventSourceExceptionpublic ValueTask_1 ReadAsync(Memory_1 buffer, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, NullReferenceException, ArgumentOutOfRangeException, IOException, ArrayTypeMismatchException, ArgumentNullException, InvalidOperationException, OutOfMemoryException, EventSourceException, ObjectDisposedException
ReadAsync in class TextReaderjava.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionNullReferenceExceptionArgumentOutOfRangeExceptionIOExceptionArrayTypeMismatchExceptionArgumentNullExceptionInvalidOperationExceptionOutOfMemoryExceptionEventSourceExceptionObjectDisposedExceptionpublic int ReadBlock(char[] buffer,
int index,
int count)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException
ReadBlock in class TextReaderjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionpublic int ReadBlock(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
ReadBlock in class TextReaderjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionpublic Task_1 ReadBlockAsync(char[] buffer, int index, int count) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException
ReadBlockAsync in class TextReaderjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionNullReferenceExceptionpublic Task_1 ReadBlockAsync(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, NullReferenceException
ReadBlockAsync in class TextReaderjava.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionNullReferenceExceptionpublic ValueTask_1 ReadBlockAsync(Memory_1 buffer, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, NullReferenceException, ArgumentOutOfRangeException, IOException, ArrayTypeMismatchException, ArgumentNullException, InvalidOperationException, OutOfMemoryException, EventSourceException, ObjectDisposedException
ReadBlockAsync in class TextReaderjava.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionNullReferenceExceptionArgumentOutOfRangeExceptionIOExceptionArrayTypeMismatchExceptionArgumentNullExceptionInvalidOperationExceptionOutOfMemoryExceptionEventSourceExceptionObjectDisposedExceptionpublic java.lang.String ReadLine()
throws java.lang.Throwable,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException,
ArgumentException,
NotSupportedException
ReadLine in class TextReaderjava.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionArgumentExceptionNotSupportedExceptionpublic Task_1 ReadLineAsync() throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentNullException, TaskSchedulerException, ArgumentException, InvalidOperationException, EventSourceException
ReadLineAsync in class TextReaderjava.lang.ThrowablePlatformNotSupportedExceptionNullReferenceExceptionNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionArgumentNullExceptionTaskSchedulerExceptionArgumentExceptionInvalidOperationExceptionEventSourceExceptionpublic ValueTask_1 ReadLineAsync(CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, NullReferenceException, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentNullException, TaskSchedulerException, InvalidOperationException, EventSourceException, ObjectDisposedException
ReadLineAsync in class TextReaderjava.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionNullReferenceExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionArgumentNullExceptionTaskSchedulerExceptionInvalidOperationExceptionEventSourceExceptionObjectDisposedExceptionpublic java.lang.String ReadToEnd()
throws java.lang.Throwable,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
ArgumentException,
ArgumentNullException,
FormatException,
NotSupportedException,
ArrayTypeMismatchException,
OutOfMemoryException
ReadToEnd in class TextReaderjava.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionArgumentExceptionArgumentNullExceptionFormatExceptionNotSupportedExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionpublic Task_1 ReadToEndAsync() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException
ReadToEndAsync in class TextReaderjava.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionpublic Task_1 ReadToEndAsync(CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException
ReadToEndAsync in class TextReaderjava.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionpublic void setJCOInstance(org.mases.jcobridge.JCObject instance)
setJCOInstance in class TextReader