Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] changes to Image.toURL()

Robert Engels

2007-06-27

Replies:

The toURL() method in Image is needlessly complicated and restrictive.

Rather than checking if the string starts with various prefixes, a
better solutions would be to either just call new URL(string) and
trap an InvalidURLException, or minimally check that the string
contains the :/ character sequence.

Without doing this, it is impossible to use URL that use a custom
protocol.

Similarly, the checking of http: in HTMLWorker should be changed to
check for the :/ sequence.

Thanks.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.