Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (22 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/libjava/java/util/jar/JarFile.java

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    11/* JarFile.java - Representation of a jar file
    2    Copyright (C) 2000 Free Software Foundation, Inc.
     2   Copyright (C) 2000 Free Software Foundation, Inc.
    33
    44This file is part of GNU Classpath.
     
    6868  /**
    6969   * The manifest of this file, if any, otherwise null.
    70    * Read by the constructor.
    71    */
    72   private final Manifest manifest;
    73 
    74   /** Wether to verify the manifest and all entries */
     70   * Read .
     71   */
     72  private Manifest manifest;
     73
     74  /** W */
    7575  private boolean verify;
    7676
     77
     78
     79
    7780  // Constructors
    7881
    7982  /**
    80    * Creates a new JarFile, tries to read the manifest and if the manifest
    81    * exists verifies it.
     83   * Creates a new JarFile. All jar entries are verified (when a Manifest file
     84   * for this JarFile exists). You need to actually open and read the complete
     85   * jar entry (with <code>getInputStream()</code>) to check its signature.
    8286   *
    8387   * @param fileName the name of the file to open
     
    9195
    9296  /**
    93    * Creates a new JarFile, tries to read the manifest and if the manifest
    94    * exists and verify is true verfies it.
     97   * Creates a new JarFile. If verify is true then all jar entries are
     98   * verified (when a Manifest file for this JarFile exists). You need to
     99   * actually open and read the complete jar entry
     100   * (with <code>getInputStream()</code>) to check its signature.
    95101   *
    96102   * @param fileName the name of the file to open
     
    104110  {
    105111    super(fileName);
    106     manifest = readManifest();
    107112    if (verify)
    108       verify();
    109   }
    110 
    111   /**
    112    * Creates a new JarFile, tries to read the manifest and if the manifest
    113    * exists verifies it.
     113      {
     114        manifest = readManifest();
     115        verify();
     116      }
     117  }
     118
     119  /**
     120   * Creates a new JarFile. All jar entries are verified (when a Manifest file
     121   * for this JarFile exists). You need to actually open and read the complete
     122   * jar entry (with <code>getInputStream()</code>) to check its signature.
    114123   *
    115124   * @param file the file to open as a jar file
     
    123132
    124133  /**
    125    * Creates a new JarFile, tries to read the manifest and if the manifest
    126    * exists and verify is true verfies it.
     134   * Creates a new JarFile. If verify is true then all jar entries are
     135   * verified (when a Manifest file for this JarFile exists). You need to
     136   * actually open and read the complete jar entry
     137   * (with <code>getInputStream()</code>) to check its signature.
    127138   *
    128139   * @param file the file to open to open as a jar file
     
    136147  {
    137148    super(file);
    138     manifest = readManifest();
    139149    if (verify)
    140       verify();
    141   }
    142 
    143   /**
    144    * Creates a new JarFile with the indicated mode, tries to read the
     150      {
     151        manifest = readManifest();
     152        verify();
     153      }
     154  }
     155
     156  /**
     157   * Creates a new JarFile with the indicated mode. If verify is true then
     158   * all jar entries are verified (when a Manifest file for this JarFile
     159   * exists). You need to actually open and read the complete jar entry
     160   * (with <code>getInputStream()</code>) to check its signature.
    145161   * manifest and if the manifest exists and verify is true verfies it.
    146162   *
     
    160176  {
    161177    super(file, mode);
    162     manifest = readManifest();
    163178    if (verify)
    164       verify();
     179      {
     180        manifest = readManifest();
     181        verify();
     182      }
    165183  }
    166184
     
    194212          {
    195213            InputStream in = super.getInputStream(manEntry);
     214
    196215            return new Manifest(in);
    197216          }
    198217        else
    199218          {
     219
    200220            return null;
    201221          }
     
    203223    catch (IOException ioe)
    204224      {
     225
    205226        return null;
    206227      }
     
    242263      ZipEntry zip = (ZipEntry) entries.nextElement();
    243264      JarEntry jar = new JarEntry(zip);
     265
     266
     267
     268
     269
     270
     271
     272
     273
     274
    244275      if (manifest != null)
    245276        {
     
    262293      {
    263294        JarEntry jarEntry = new JarEntry(entry);
     295
     296
     297
     298
     299
     300
     301
     302
     303
     304
    264305        if (manifest != null)
    265306          {
     
    302343   * contain a manifest file.
    303344   */
    304   public Manifest getManifest()
    305   {
     345  public Manifest getManifest() throws IOException
     346  {
     347    if (!manifestRead)
     348      manifest = readManifest();
     349
    306350    return manifest;
    307351  }
Note: See TracChangeset for help on using the changeset viewer.