|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.univocity.api.io.ReaderProvider
com.univocity.api.io.StringReaderProvider
public class StringReaderProvider
A ReaderProvider for Strings. Use this to read data directly from a String that
should be used as an input.
ReaderProvider| Constructor Summary | |
|---|---|
StringReaderProvider()
Creates a new instance with an empty String. |
|
StringReaderProvider(String string)
Creates a new instance with a given String. |
|
| Method Summary | |
|---|---|
StringReader |
getResource()
Returns a new StringReader for reading the String provided in the constructor of this class or
via the setString(String) method. |
void |
setString(String string)
Assigns a new String to this ReaderProvider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringReaderProvider()
String.
public StringReaderProvider(String string)
String. null will be converted to "".
string - the String to be read when getResource() is called..| Method Detail |
|---|
public void setString(String string)
String to this ReaderProvider. null will be converted to "".
string - the String to be read when getResource() is called..public StringReader getResource()
StringReader for reading the String provided in the constructor of this class or
via the setString(String) method.
StringReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||