Package system.io
Class StreamReader
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.io.TextReader
-
- system.io.StreamReader
-
- All Implemented Interfaces:
AutoCloseable
,IJCOBridgeReflected
public class StreamReader extends TextReader
The base .NET class managing System.IO.StreamReader, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.StreamReader
Powered by JCOBridge: more info at https://www.jcobridge.com
- Version:
- 1.14.3.0
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic String
assemblyShortName
Assembly name: System.Private.CoreLibstatic String
className
Qualified class name: System.IO.StreamReaderstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description StreamReader()
StreamReader(Object instance)
Internal constructor.StreamReader(String path)
StreamReader(String path, boolean detectEncodingFromByteOrderMarks)
StreamReader(String path, FileStreamOptions options)
StreamReader(String path, Encoding encoding)
StreamReader(String path, Encoding encoding, boolean detectEncodingFromByteOrderMarks)
StreamReader(String path, Encoding encoding, boolean detectEncodingFromByteOrderMarks, int bufferSize)
StreamReader(String path, Encoding encoding, boolean detectEncodingFromByteOrderMarks, FileStreamOptions options)
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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StreamReader
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoStreamReader
, a cast assert is made to check if types are compatible.void
Close()
void
DiscardBufferedData()
Stream
getBaseStream()
Encoding
getCurrentEncoding()
boolean
getEndOfStream()
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeint
Peek()
int
Read()
int
Read(char[] buffer, int index, int count)
int
Read(JCORefOut dupParam0, int dupParam1, int dupParam2)
int
ReadBlock(char[] buffer, int index, int count)
int
ReadBlock(JCORefOut dupParam0, int dupParam1, int dupParam2)
String
ReadLine()
String
ReadToEnd()
void
setJCOInstance(JCObject instance)
-
Methods inherited from class system.io.TextReader
close, Dispose, Synchronized
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.IO.StreamReader- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StreamReader
public StreamReader(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
StreamReader
public StreamReader(Stream stream, boolean detectEncodingFromByteOrderMarks) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
StreamReader
public StreamReader(Stream stream, Encoding encoding, boolean detectEncodingFromByteOrderMarks, int bufferSize, boolean leaveOpen) throws Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, RankException
-
StreamReader
public StreamReader(Stream stream, Encoding encoding, boolean detectEncodingFromByteOrderMarks, int bufferSize) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
StreamReader
public StreamReader(Stream stream, Encoding encoding, boolean detectEncodingFromByteOrderMarks) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
StreamReader
public StreamReader(Stream stream, Encoding encoding) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
StreamReader
public StreamReader(Stream stream) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException
-
StreamReader
public StreamReader(String path, boolean detectEncodingFromByteOrderMarks) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, SerializationException
-
StreamReader
public StreamReader(String path, FileStreamOptions options) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, SerializationException, IOException
-
StreamReader
public StreamReader(String path, Encoding encoding, boolean detectEncodingFromByteOrderMarks, int bufferSize) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, SerializationException
-
StreamReader
public StreamReader(String path, Encoding encoding, boolean detectEncodingFromByteOrderMarks, FileStreamOptions options) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, FormatException, SerializationException, IOException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
FormatException
SerializationException
IOException
-
StreamReader
public StreamReader(String path, Encoding encoding, boolean detectEncodingFromByteOrderMarks) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, SerializationException
-
StreamReader
public StreamReader(String path, Encoding encoding) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, SerializationException
-
StreamReader
public StreamReader(String path) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classTextReader
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classTextReader
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public 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 classTextReader
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classTextReader
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classTextReader
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classTextReader
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static StreamReader cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoStreamReader
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
StreamReader
instance- Throws:
Throwable
- in case of error during cast operation
-
Peek
public int Peek() throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
Read
public int Read() throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
Read
public int Read(char[] buffer, int index, int count) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
- Overrides:
Read
in classTextReader
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
RankException
CultureNotFoundException
ObjectDisposedException
-
Read
public int Read(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
- Overrides:
Read
in classTextReader
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
RankException
CultureNotFoundException
ObjectDisposedException
-
ReadBlock
public int ReadBlock(char[] buffer, int index, int count) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
- Overrides:
ReadBlock
in classTextReader
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
RankException
CultureNotFoundException
ObjectDisposedException
-
ReadBlock
public int ReadBlock(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, RankException, CultureNotFoundException, ObjectDisposedException
- Overrides:
ReadBlock
in classTextReader
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
RankException
CultureNotFoundException
ObjectDisposedException
-
ReadLine
public String ReadLine() throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException
- Overrides:
ReadLine
in classTextReader
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
OutOfMemoryException
-
ReadToEnd
public String ReadToEnd() throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException
- Overrides:
ReadToEnd
in classTextReader
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
OutOfMemoryException
-
Close
public void Close() throws Throwable
- Overrides:
Close
in classTextReader
- Throws:
Throwable
-
DiscardBufferedData
public void DiscardBufferedData() throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
getEndOfStream
public boolean getEndOfStream() throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
-