|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.espirit.firstspirit.server.mediamanagement.FileBasedUploadFilter
public abstract class FileBasedUploadFilter
| Constructor Summary | |
|---|---|
FileBasedUploadFilter()
|
|
| Method Summary | |
|---|---|
void |
close()
Callback method which may be used to do some clean up. |
abstract void |
doFilter(File tempFile)
IOException indicates to not store the File tempFile in the repository |
protected ServiceLocator |
getServiceLocator()
|
protected void |
init()
|
void |
initUploadFilter(InputStream in,
String extension)
Initialize the filter instance. |
int |
read(byte[] b,
int off,
int len)
See InputStream.read(byte[], int, int). |
void |
setServiceLocator(ServiceLocator value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileBasedUploadFilter()
| Method Detail |
|---|
public final void setServiceLocator(@NotNull
ServiceLocator value)
setServiceLocator in interface SetServiceLocatorCallbackprotected void init()
protected ServiceLocator getServiceLocator()
public void initUploadFilter(@NotNull
InputStream in,
@NotNull
String extension)
throws IOException
UploadFilter
initUploadFilter in interface UploadFilterin - input stream containing the dataextension - file extension - it is not save to guess the file content from this extension
IOException
public abstract void doFilter(File tempFile)
throws IOException
tempFile -
IOException
public int read(@NotNull
byte[] b,
int off,
int len)
throws IOException
UploadFilterInputStream.read(byte[], int, int).
read in interface UploadFilterIOExceptionpublic void close()
UploadFilterUploadFilter.initUploadFilter(java.io.InputStream, String).
close in interface UploadFilterclose in interface Closeable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||