ds.ov2.front
Class Host_testframe.Buffered_string_writer

java.lang.Object
  extended by java.io.Writer
      extended by ds.ov2.front.Host_testframe.Buffered_string_writer
All Implemented Interfaces:
Closeable, Flushable, Appendable
Enclosing class:
Host_testframe

static class Host_testframe.Buffered_string_writer
extends Writer

Character stream that collects the contents in a buffer in memory that can be retrieved later.


Field Summary
private  StringBuilder contents
          Contents of the Buffered_string_writer.
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
Host_testframe.Buffered_string_writer()
          Empty constructor.
 
Method Summary
 void close()
          Empty close.
 void flush()
          Empty flush.
 String get_contents()
          Returns the current contents of the stream.
 void write(char[] cbuf, int off, int len)
          Append a portion of an array to the memory buffer.
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contents

private StringBuilder contents
Contents of the Buffered_string_writer.

Constructor Detail

Host_testframe.Buffered_string_writer

public Host_testframe.Buffered_string_writer()
Empty constructor.

Method Detail

close

public void close()
Empty close.

Specified by:
close in interface Closeable
Specified by:
close in class Writer

flush

public void flush()
Empty flush.

Specified by:
flush in interface Flushable
Specified by:
flush in class Writer

write

public void write(char[] cbuf,
                  int off,
                  int len)
Append a portion of an array to the memory buffer.

Specified by:
write in class Writer
Parameters:
cbuf - array of characters
off - starting offset
len - length

get_contents

public String get_contents()
Returns the current contents of the stream.