public interface UploadFilter extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Callback method which may be used to do some clean up.
|
void |
initUploadFilter(InputStream in,
String extension)
Initialize the filter instance.
|
int |
read(byte[] b,
int off,
int len)
|
void initUploadFilter(@NotNull InputStream in, @NotNull String extension) throws IOException
in
- input stream containing the dataextension
- file extension - it is not save to guess the file content from this extensionIOException
int read(@NotNull byte[] b, int off, int len) throws IOException
IOException
void close()
initUploadFilter(java.io.InputStream, String)
.close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500