|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Reader
things.common.tools.StringArrayReader
public class StringArrayReader
This will read an array of strings.
EPG - Rewrite - 6 May 06
Field Summary |
---|
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
StringArrayReader(java.lang.String[] inData,
boolean spaceDelimit)
Construct. |
Method Summary | |
---|---|
void |
close()
Close. |
int |
read()
Read a single character. |
int |
read(char[] cbuf,
int off,
int len)
Read into a buffer. |
Methods inherited from class java.io.Reader |
---|
mark, markSupported, read, read, ready, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringArrayReader(java.lang.String[] inData, boolean spaceDelimit) throws java.lang.Throwable
inData
- The data to read.spaceDelimit
- simulate a space between each array element.
java.lang.Throwable
- if the data is not allowed.Method Detail |
---|
public int read(char[] cbuf, int off, int len) throws java.io.IOException
read
in class java.io.Reader
cbuf
- Destination bufferoff
- Offset at which to start storing characterslen
- Maximum number of characters to read
java.io.IOException
Reader.read(char[], int, int)
public int read() throws java.io.IOException
read
in class java.io.Reader
Not
- really anything, ever.
java.io.IOException
Reader.read()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.Reader
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |