|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.japtproxy.poolobject.PoolFile
public class PoolFile
A file-based PoolObject implementation.
| Constructor Summary | |
|---|---|
PoolFile(java.io.File resource)
Initialize the PoolFile with the given resource. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PoolFile(java.io.File resource)
throws java.io.IOException
resource - the file handle.
java.io.IOException - is thrown if the initialization fails.| Method Detail |
|---|
public long getLastModified()
getLastModified in interface PoolObjectpublic void setLastModified(long lastModified)
setLastModified in interface PoolObjectlastModified - a timestamp to set on the temp resource.public long getSize()
getSize in interface PoolObjectpublic java.lang.String getContentType()
getContentType in interface PoolObject
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface PoolObjectjava.io.IOException - is thrown if this operation fails.
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface PoolObjectjava.io.IOException - is thrown if this operation fails.public void store()
store in interface PoolObjectpublic void remove()
remove in interface PoolObjectpublic java.lang.String getName()
getName in interface PoolObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||