public class TOutputStreamWriter
extends java.io.Writer
Constructor and Description |
---|
TOutputStreamWriter(java.io.OutputStream outputStream,
java.lang.String encoding)
Initializes the writer with the given output stream and encoding.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the writer.
|
void |
flush()
Flushes the writer.
|
java.lang.String |
getRecordedWriting()
Gets the recorded content if given.
|
boolean |
isClosed()
Indicates if writer is closed.
|
void |
useRecordWriting(boolean record)
Sets the recording of written content.
|
void |
write(char[] cbuf,
int off,
int len)
Write a portion of an array of characters.
|
void |
write(int c)
Write a single character.
|
void |
write(java.lang.String str)
Writes the given string to the underlying output stream with the give encoding.
|
void |
write(java.lang.String str,
int off,
int len)
Write a portion of a string.
|
void |
write(TStreamable streamable)
Writes the streamable content to the underlying output stream.
|
public TOutputStreamWriter(java.io.OutputStream outputStream, java.lang.String encoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(int c) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(java.lang.String str, int off, int len) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(java.lang.String str) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void write(TStreamable streamable) throws java.lang.Exception
java.lang.Exception
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
java.io.IOException
public boolean isClosed()
public void useRecordWriting(boolean record)
public java.lang.String getRecordedWriting()
Copyright (c) 2017 Software AG. All Rights Reserved.