当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 connector API Documentation 英文版文档
SerializableReader (JBoss Connector API) - JBoss 4.0.1 sp1 connector API Documentation 英文版文档
org.jboss.resource.adapter.jdbc.remote
Class SerializableReader
java.lang.Object
java.io.Reader
org.jboss.resource.adapter.jdbc.remote.SerializableReader
- All Implemented Interfaces:
- Serializable
- public class SerializableReader
- extends Reader
- implements Serializable
- Author:
- Tom Elrod
- See Also:
- Serialized Form
Field Summary |
protected char[] |
buf
|
protected int |
count
|
protected int |
mark
|
protected int |
pos
|
Method Summary |
void |
close()
Close the stream. |
int |
read(char[] cbuf,
int off,
int len)
Read characters into a portion of an array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buf
protected char[] buf
pos
protected int pos
mark
protected int mark
count
protected int count
SerializableReader
public SerializableReader(Reader reader)
throws IOException
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.
- Throws:
IOException
- If an I/O error occurs
read
public int read(char[] 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.
- Parameters:
cbuf
- Destination bufferoff
- Offset at which to start storing characterslen
- Maximum number of characters to read
- Returns:
- The number of characters read, or -1 if the end of the
stream has been reached
- Throws:
IOException
- If an I/O error occurs
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.