Return-Path: Delivered-To: apmail-jakarta-avalon-cvs-archive@apache.org Received: (qmail 42273 invoked from network); 18 Feb 2002 12:34:47 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 18 Feb 2002 12:34:47 -0000 Received: (qmail 8760 invoked by uid 97); 18 Feb 2002 12:34:46 -0000 Delivered-To: qmlist-jakarta-archive-avalon-cvs@jakarta.apache.org Received: (qmail 8737 invoked by uid 97); 18 Feb 2002 12:34:46 -0000 Mailing-List: contact avalon-cvs-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon CVS List" Reply-To: "Avalon Developers List" Delivered-To: mailing list avalon-cvs@jakarta.apache.org Received: (qmail 8726 invoked by uid 97); 18 Feb 2002 12:34:45 -0000 Date: 18 Feb 2002 12:34:45 -0000 Message-ID: <20020218123445.81854.qmail@icarus.apache.org> From: cziegeler@apache.org To: jakarta-avalon-excalibur-cvs@apache.org Subject: cvs commit: jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/source URLSource.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N cziegeler 02/02/18 04:34:45 Modified: src/scratchpad/org/apache/avalon/excalibur/source URLSource.java Log: Removed obsolete method Revision Changes Path 1.14 +4 -20 jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/source/URLSource.java Index: URLSource.java =================================================================== RCS file: /home/cvs/jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/source/URLSource.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- URLSource.java 18 Feb 2002 12:33:08 -0000 1.13 +++ URLSource.java 18 Feb 2002 12:34:45 -0000 1.14 @@ -34,7 +34,7 @@ * Description of a source which is described by an URL. * * @author Carsten Ziegeler - * @version CVS $Revision: 1.13 $ $Date: 2002/02/18 12:33:08 $ + * @version CVS $Revision: 1.14 $ $Date: 2002/02/18 12:34:45 $ */ public final class URLSource @@ -56,9 +56,6 @@ /** The last modification date or 0 */ private long lastModificationDate; - /** The content length */ - private long contentLength; - /** The system id */ private String systemId; @@ -149,7 +146,6 @@ { File file = new File(this.systemId.substring(FILE.length())); this.lastModificationDate = file.lastModified(); - this.contentLength = file.length(); } else { @@ -166,18 +162,16 @@ } } this.lastModificationDate = this.connection.getLastModified(); - this.contentLength = this.connection.getContentLength(); } catch (IOException ignore) { - this.lastModificationDate = 0; - this.contentLength = -1; + this.lastModificationDate = 0; } - } else + } + else { // do not open connection when using post! this.lastModificationDate = 0; - this.contentLength = -1; } } this.gotInfos = true; @@ -209,16 +203,6 @@ { return new SourceResource(this); } - } - - /** - * Get the content length of the source or -1 if it - * is not possible to determine the length. - */ - public long getContentLength() - { - this.getInfos(); - return this.contentLength; } /** -- To unsubscribe, e-mail: For additional commands, e-mail: