On Monday 05 January 2009 15:25, j16sdiz at freenetproject.org wrote:
> Author: j16sdiz
> Date: 2009-01-05 15:25:07 +0000 (Mon, 05 Jan 2009)
> New Revision: 24920
>
> Modified:
> trunk/freenet/src/freenet/clients/http/filter/ContentFilter.java
> Log:
> comment
>
> Modified: trunk/freenet/src/freenet/clients/http/filter/ContentFilter.java
> ===================================================================
> --- trunk/freenet/src/freenet/clients/http/filter/ContentFilter.java
2009-01-05 15:17:25 UTC (rev 24919)
> +++ trunk/freenet/src/freenet/clients/http/filter/ContentFilter.java
2009-01-05 15:25:07 UTC (rev 24920)
> @@ -118,11 +118,23 @@
> this.type = type;
> }
> }
> -
> +
> /**
> * Filter some data.
> - * @param bf The bucket factory used to create the bucket to return the
filtered data in.
> - * @throws IOException If an internal error involving buckets occurred.
> + *
> + * @param data
> + * Input data
> + * @param bf
> + * The bucket factory used to create the bucket to return
> the
filtered data in.
> + * @param typeName
> + * MIME type for input data
> + *
> + * @throws IOException
> + * If an internal error involving buckets occurred.
> + * @throws UnsafeContentTypeException
> + * If the MIME type is declared unsafe (e.g. pdf files)
> + * @throws IllegalStateException
> + * If data is invalid (e.g. corrupted file) and the filter
have no way to recover.
IMHO IllegalStateException is not a good way to convey this, it should always
be a FilterException...
> */
> public static FilterOutput filter(Bucket data, BucketFactory bf, String
typeName, URI baseURI, FoundURICallback cb) throws
UnsafeContentTypeException, IOException {
> if(Logger.shouldLog(Logger.MINOR, ContentFilter.class))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20090110/4addcd08/attachment.pgp>