Package org.smooks.io.sink
Class StringSink
- java.lang.Object
-
- org.smooks.io.sink.WriterSink<StringWriter>
-
- org.smooks.io.sink.StringSink
-
- All Implemented Interfaces:
Sink
,SinkExtractor<StringSink>
public class StringSink extends WriterSink<StringWriter> implements Sink, SinkExtractor<StringSink>
Utility class for creating a String basedStreamResult
.- Author:
- tom.fennelly@gmail.com
-
-
Field Summary
-
Fields inherited from class org.smooks.io.sink.WriterSink
writer
-
-
Constructor Summary
Constructors Constructor Description StringSink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
extractFromSink(StringSink sink, Export export)
String
getResult()
StringWriter
getStringWriter()
String
toString()
-
Methods inherited from class org.smooks.io.sink.WriterSink
getWriter
-
-
-
-
Method Detail
-
getResult
public String getResult()
-
extractFromSink
public Object extractFromSink(StringSink sink, Export export)
- Specified by:
extractFromSink
in interfaceSinkExtractor<StringSink>
-
getStringWriter
public StringWriter getStringWriter()
-
-