net.sf.saxon.dotnet
public class DotNetReader extends java.io.Reader
| Constructor and Description |
|---|
DotNetReader(TextReader reader)
Create a Java Reader that wraps a .NET Reader
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the stream.
|
TextReader |
getUnderlyingTextReader()
Get the underlying TextReader object
|
int |
read()
Read a single character.
|
int |
read(char[] cbuf,
int off,
int len)
Read characters into a portion of an array.
|
public DotNetReader(TextReader reader)
reader - the .NET Readerpublic TextReader getUnderlyingTextReader()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.Readerjava.io.IOException - If an I/O error occurspublic int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readercbuf - Destination bufferoff - Offset at which to start storing characterslen - Maximum number of characters to readjava.io.IOException - If an I/O error occurspublic int read()
throws java.io.IOException
Subclasses that intend to support efficient single-character input should override this method.
read in class java.io.Readerjava.io.IOException - If an I/O error occurs