org.japtproxy.poolobject
Interface PoolObject

All Known Implementing Classes:
PoolFile

public interface PoolObject

Version:
$LastChangedRevision:79 $
Author:
Oliver J. Siegmar

Method Summary
 java.lang.String getContentType()
          Get the content type of the final resource.
 java.io.InputStream getInputStream()
          Get the InputStream of the final resource.
 long getLastModified()
          Get the timestamp of the final resource.
 java.lang.String getName()
          Get the name of the pool object.
 java.io.OutputStream getOutputStream()
          Get the OutputStream of the temp resource.
 long getSize()
          Get the size of the final resource.
 void remove()
          Removes temp and final resources.
 void setLastModified(long lastModified)
          Set a timestamp on the temp resource.
 void store()
          Saves the temp resource to the final one.
 

Method Detail

getLastModified

long getLastModified()
Get the timestamp of the final resource.

Returns:
the timestamp of the final resource.

setLastModified

void setLastModified(long lastModified)
Set a timestamp on the temp resource.

Parameters:
lastModified - a timestamp to set on the temp resource.

getSize

long getSize()
Get the size of the final resource.

Returns:
the size of the final resource.

getContentType

java.lang.String getContentType()
Get the content type of the final resource.

Returns:
the content type of the final resource.

getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException
Get the InputStream of the final resource.

Returns:
the InputStream of the final resource.
Throws:
java.io.IOException - is thrown if this operation fails.

getOutputStream

java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Get the OutputStream of the temp resource.

Returns:
the OutputStream of the temp resource.
Throws:
java.io.IOException - is thrown if this operation fails.

store

void store()
Saves the temp resource to the final one.


remove

void remove()
Removes temp and final resources.


getName

java.lang.String getName()
Get the name of the pool object.

Returns:
the name of the pool object.


Copyright © 2006-2008. All Rights Reserved.