Esri Geoportal Server
1.2.9

com.esri.gpt.framework.util
Class StringBuilderWriter

java.lang.Object
  extended by java.io.Writer
      extended by com.esri.gpt.framework.util.StringBuilderWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class StringBuilderWriter
extends Writer

Writer to StringBuilder.


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
StringBuilderWriter()
          Creates instance of the writer.
StringBuilderWriter(int capacity)
          Creates instance of the writer.
StringBuilderWriter(StringBuilder builder)
          Creates instance of the writer.
 
Method Summary
 void close()
           
 void flush()
           
 StringBuilder getStringBuilder()
          Gets string builder.
 void write(char[] cbuf, int off, int len)
           
 
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
 

Constructor Detail

StringBuilderWriter

public StringBuilderWriter(StringBuilder builder)
Creates instance of the writer.

Parameters:
builder - string builder

StringBuilderWriter

public StringBuilderWriter(int capacity)
Creates instance of the writer.

Parameters:
capacity - initial capacity

StringBuilderWriter

public StringBuilderWriter()
Creates instance of the writer.

Method Detail

getStringBuilder

public StringBuilder getStringBuilder()
Gets string builder.

Returns:
string builder.

write

public void write(char[] cbuf,
                  int off,
                  int len)
Specified by:
write in class Writer

flush

public void flush()
Specified by:
flush in interface Flushable
Specified by:
flush in class Writer

close

public void close()
Specified by:
close in interface Closeable
Specified by:
close in class Writer

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.