com.icegreen.greenmail.foedus.util
Class StringBufferResource

java.lang.Object
  extended by com.icegreen.greenmail.foedus.util.StringBufferResource
All Implemented Interfaces:
Resource

public class StringBufferResource
extends Object
implements Resource


Constructor Summary
StringBufferResource()
           
StringBufferResource(String initalValue)
           
 
Method Summary
 void delete()
           
 String getAsString()
           
 InputStream getInputStream()
           
 Reader getReader()
           
 long getSize()
           
 Writer getWriter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBufferResource

public StringBufferResource()

StringBufferResource

public StringBufferResource(String initalValue)
Method Detail

getWriter

public Writer getWriter()
                 throws IOException
Specified by:
getWriter in interface Resource
Throws:
IOException

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface Resource
Throws:
IOException

getReader

public Reader getReader()
                 throws IOException
Specified by:
getReader in interface Resource
Throws:
IOException

getSize

public long getSize()
Specified by:
getSize in interface Resource

getAsString

public String getAsString()
                   throws IOException
Specified by:
getAsString in interface Resource
Throws:
IOException

delete

public void delete()
Specified by:
delete in interface Resource