net.sf.saxon.dotnet
Class DotNetReader
java.io.Reader
net.sf.saxon.dotnet.DotNetReader
public class DotNetReader
extends java.io.Reader
An implementation of java.io.Reader that wraps a .NET System.IO.TextReader
DotNetReader(TextReader reader) - Create a Java Reader that wraps a .NET Reader
|
void | close() - Close the stream.
|
TextReader | getUnderlyingTextReader() - Get the underlying TextReader object
|
int | read() - Read a single character.
|
int | read(cbuf[] , int off, int len) - Read characters into a portion of an array.
|
DotNetReader
public DotNetReader(TextReader reader)
Create a Java Reader that wraps a .NET Reader
close
public void close()
throws IOException
Close the stream. Once a stream has been closed, further read(),
ready(), mark(), or reset() invocations will throw an IOException.
Closing a previously-closed stream, however, has no effect.
getUnderlyingTextReader
public TextReader getUnderlyingTextReader()
Get the underlying TextReader object
- the underlying TextReader object
read
public int read()
throws IOException
Read a single character. This method will block until a character is
available, an I/O error occurs, or the end of the stream is reached.
Subclasses that intend to support efficient single-character input
should override this method.
- The character read, as an integer in the range 0 to 65535
(0x00-0xffff), or -1 if the end of the stream has
been reached
read
public int read(cbuf[] ,
int off,
int len)
throws IOException
Read characters into a portion of an array. This method will block
until some input is available, an I/O error occurs, or the end of the
stream is reached.
off
- Offset at which to start storing characterslen
- Maximum number of characters to read
- The number of characters read, or -1 if the end of the
stream has been reached