com.icegreen.greenmail.foedus.util
Class StringBufferResource
java.lang.Object
com.icegreen.greenmail.foedus.util.StringBufferResource
- All Implemented Interfaces:
- Resource
public class StringBufferResource
- extends Object
- implements Resource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringBufferResource
public StringBufferResource()
StringBufferResource
public StringBufferResource(String initalValue)
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