类 AbstractResource

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      longcontentLength()
      This implementation reads the entire InputStream to calculate the content length.
      ResourcecreateRelative​(String relativePath)
      This implementation throws a FileNotFoundException, assuming that relative resources cannot be created for this resource.
      booleanequals​(Object obj)
      This implementation compares description strings.
      booleanexists()
      This implementation checks whether a File can be opened, falling back to whether an InputStream can be opened.
      FilegetFile()
      This implementation throws a FileNotFoundException, assuming that the resource cannot be resolved to an absolute file path.
      protected FilegetFileForLastModifiedCheck()
      Determine the File to use for timestamp checking.
      StringgetFilename()
      This implementation always returns null, assuming that this resource type does not have a filename.
      URIgetURI()
      This implementation builds a URI based on the URL returned by getURL().
      URLgetURL()
      This implementation throws a FileNotFoundException, assuming that the resource cannot be resolved to a URL.
      inthashCode()
      This implementation returns the description's hash code.
      booleanisOpen()
      This implementation always returns false.
      booleanisReadable()
      This implementation always returns true.
      longlastModified()
      This implementation checks the timestamp of the underlying File, if available.
      StringtoString()
      This implementation returns the description of this resource.