Closeable
, AutoCloseable
, Readable
public class StringArrayReader extends StringReader
Constructor | Description |
---|---|
StringArrayReader(String[] pStrings) |
Create a new string array reader.
|
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
protected void |
ensureOpen() |
Check to make sure that the stream has not been closed
|
void |
mark(int pReadLimit) |
|
boolean |
markSupported() |
|
protected Reader |
nextReader() |
|
int |
read() |
|
int |
read(char[] pBuffer,
int pOffset,
int pLength) |
|
boolean |
ready() |
|
void |
reset() |
|
long |
skip(long pChars) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read, read, transferTo
protected final Object finalLock
public StringArrayReader(String[] pStrings)
pStrings
- String
s providing the character stream.protected final Reader nextReader()
protected final void ensureOpen() throws IOException
IOException
- if the stream is closedpublic void close()
close
in interface AutoCloseable
close
in interface Closeable
close
in class StringReader
public void mark(int pReadLimit) throws IOException
mark
in class StringReader
IOException
public void reset() throws IOException
reset
in class StringReader
IOException
public boolean markSupported()
markSupported
in class StringReader
public int read() throws IOException
read
in class StringReader
IOException
public int read(char[] pBuffer, int pOffset, int pLength) throws IOException
read
in class StringReader
IOException
public boolean ready() throws IOException
ready
in class StringReader
IOException
public long skip(long pChars) throws IOException
skip
in class StringReader
IOException
Copyright © 2018. All rights reserved.