Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4428815

spec: "or cacheFile" must be removed from the FileCacheImageOutputStream

    XMLWordPrintable

Details

    • beta
    • generic
    • generic

    Description



      Name: mlR10151 Date: 03/22/2001



      The constructor for the FileCacheImageOutputStream class has the following description:

      >public FileCacheImageOutputStream(OutputStream stream,
      > File cacheDir)
      > throws IOException
      >
      > Constructs a FileCacheImageOutputStream that will write to a given outputStream.
      >
      > A temporary file is used as a cache. If cacheDiris non-null and is a directory, the file will be
      > created there. If it is null, the system-dependent default temporary-file directory will be used
      > (see the documentation for File.createTempFile for details).
      > Parameters:
      > stream - an OutputStream to write to.
      > cacheDir - a File indicating where the cache file should be created, or null to use the
      system
      > directory.
      > Throws:
      > IllegalArgumentException - if stream or cacheFile is null.
       ... ^^^^^^^^^^^^
       
       But there is no parameter cacheFile, and the cacheDir parameter can be null legally,
       so "or cacheFile" must be removed.


      ======================================================================

      Attachments

        Activity

          People

            dricesunw Daniel Rice (Inactive)
            mlsunw Ml Ml (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: