avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/source URLSource.java
Date Mon, 18 Feb 2002 12:34:45 GMT
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 <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
  - * @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:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message