|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
com.softwareag.tamino.db.api.io.TOutputStreamWriter
public class TOutputStreamWriter
TOutputStreamWriter serves as a bridge to a byte oriented output stream. Furthermore it provide means to record every written character thus after writing is completed the client can obtain the recorded content back. This is particulary interesting for trace purpose.
Field Summary |
---|
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
TOutputStreamWriter(java.io.OutputStream outputStream,
java.lang.String encoding)
Initializes the writer with the given output stream and encoding. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.io.Writer |
---|
append, append, append, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TOutputStreamWriter(java.io.OutputStream outputStream, java.lang.String encoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
Method Detail |
---|
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 class java.io.Writer
java.io.IOException
public boolean isClosed()
public void useRecordWriting(boolean record)
public java.lang.String getRecordedWriting()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |