public interface UploadFilter extends Closeable
FileBasedUploadFilter
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)
Reads up to len bytes of data from the input stream into an array of bytes.
|
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
- the iO exceptionint read(@NotNull byte[] b, int off, int len) throws IOException
InputStream.read(byte[], int, int)
.b
- the bytes to readoff
- the offsetlen
- the lengthIOException
- on any errorvoid close()
initUploadFilter(java.io.InputStream, String)
.close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210