|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.univocity.api.io.WriterProvider
com.univocity.api.io.StringWriterProvider
public final class StringWriterProvider
A WriterProvider for Strings. Use this to write data directly to a String.
This is just a convenience class that you can use to write test cases
without having to deal with files or other persistent resources.
WriterProvider| Constructor Summary | |
|---|---|
StringWriterProvider()
Creates a new, empty StringWriterProvider |
|
| Method Summary | |
|---|---|
void |
clearDestination()
Clears the contents written to the string so far |
StringWriter |
getResource()
Obtains a new StringWriter instance. |
String |
getString()
Returns the contents written to the string so far. |
boolean |
isEmpty()
Queries whether or not the resource to be written contains any sort of content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringWriterProvider()
StringWriterProvider
| Method Detail |
|---|
public final StringWriter getResource()
public final void clearDestination()
clearDestination in class WriterProviderpublic final String getString()
public final boolean isEmpty()
WriterProvider
isEmpty in class WriterProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||