ePOST API

rice.email.proxy.util
Class FileResource

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

public class FileResource
extends java.lang.Object
implements Resource


Constructor Summary
FileResource(java.io.File file)
           
 
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
 

Constructor Detail

FileResource

public FileResource(java.io.File file)
Method Detail

delete

public void delete()
            throws java.io.IOException
Specified by:
delete 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

getWriter

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

getSize

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

ePOST API

Copyright © 2001-2005 - Rice Pastry.