public static class Payload.StringBufferOutputStream extends OutputStream
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the output stream (empty).
|
void |
flush()
Forces any buffered output to be written (empty).
|
String |
getContent()
Returns the content of the output stream.
|
void |
reset()
Resets the output stream, deleting any content stored in the string buffer.
|
void |
setContent(String str)
Sets the content of the output stream after first resetting it.
|
void |
write(int b)
Writes to the output stream.
|
write, write
public void reset()
public void setContent(String str)
str
- content to be written to the output streampublic String getContent()
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
b
- content to be written to the output streamIOException
- if there is an error while writing to the streamCopyright © Jitterbit, Inc. Licensed under the Jitterbit Master Subscription Agreement.