Return-Path: Delivered-To: apmail-xmlgraphics-commits-archive@www.apache.org Received: (qmail 43853 invoked from network); 4 Mar 2009 19:24:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2009 19:24:30 -0000 Received: (qmail 64193 invoked by uid 500); 4 Mar 2009 19:24:23 -0000 Mailing-List: contact commits-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@xmlgraphics.apache.org Delivered-To: mailing list commits@xmlgraphics.apache.org Received: (qmail 64160 invoked by uid 99); 4 Mar 2009 19:24:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 11:24:23 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 19:24:20 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id BC3C32388A1E; Wed, 4 Mar 2009 19:23:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r750116 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/spi/ImagePreloader.java Date: Wed, 04 Mar 2009 19:23:59 -0000 To: commits@xmlgraphics.apache.org From: jeremias@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090304192359.BC3C32388A1E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jeremias Date: Wed Mar 4 19:23:59 2009 New Revision: 750116 URL: http://svn.apache.org/viewvc?rev=750116&view=rev Log: Improved Javadoc. Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/spi/ImagePreloader.java Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/spi/ImagePreloader.java URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/spi/ImagePreloader.java?rev=750116&r1=750115&r2=750116&view=diff ============================================================================== --- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/spi/ImagePreloader.java (original) +++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/spi/ImagePreloader.java Wed Mar 4 19:23:59 2009 @@ -5,9 +5,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -16,7 +16,7 @@ */ /* $Id$ */ - + package org.apache.xmlgraphics.image.loader.spi; import java.io.IOException; @@ -36,19 +36,22 @@ /** Default priority for preloaders */ int DEFAULT_PRIORITY = 1000; - + /** * "Preloads" an image, i.e. indentifies whether the source image is supported by this * implementation and determines the image's intrinsic size and possibly some additional * information. The image is usually not fully loaded at this time to conserve memory. - * @param originalURI the original (unresolved) URI of the image + * The method returns null if the image was not identified. An {@link ImageException} is only + * thrown if the image is identified but some error has happened while working on the file. + * @param originalURI the original (unresolved) URI of the image * @param src a image source the image is loaded from * @param context the context object that provides configuration information - * @return an image info object with the basic information about an image + * @return an image info object with the basic information about an image or null if the + * image is not supported by this implementation * @throws ImageException if an error occurs while preloading the image * @throws IOException if an I/O error occurs while preloading the image */ - ImageInfo preloadImage(String originalURI, + ImageInfo preloadImage(String originalURI, Source src, ImageContext context) throws ImageException, IOException; /** --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: commits-help@xmlgraphics.apache.org