ePOST API

rice.email.proxy.util
Class StringBufferResource

java.lang.Object
  extended by rice.email.proxy.util.StringBufferResource
All Implemented Interfaces:
Resource

public class StringBufferResource
extends java.lang.Object
implements Resource


Field Summary
protected  java.lang.StringBuffer buffer
           
static int MAXIMUM_LENGTH
           
protected  java.io.StringWriter writer
          The buffers used in the resource
 
Constructor Summary
StringBufferResource()
           
StringBufferResource(java.lang.String initalValue)
           
 
Method Summary
 void delete()
           
 java.io.InputStream getInputStream()
           
 java.io.Reader getReader()
           
 long getSize()
           
 java.io.Writer getWriter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXIMUM_LENGTH

public static int MAXIMUM_LENGTH

writer

protected java.io.StringWriter writer
The buffers used in the resource


buffer

protected java.lang.StringBuffer buffer
Constructor Detail

StringBufferResource

public StringBufferResource()

StringBufferResource

public StringBufferResource(java.lang.String initalValue)
Method Detail

getWriter

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

getInputStream

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

getReader

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

getSize

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

delete

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

ePOST API

Copyright © 2001-2005 - Rice Pastry.