Class SourceHabitats.FoundSource

java.lang.Object
eu.bandm.tools.util.files.SourceHabitats.FoundSource
Enclosing class:
SourceHabitats

public class SourceHabitats.FoundSource extends Object
Represents the only one data source which has been successfully found for one particular resource nam.
  • Field Details

    • habitat

      The habitat which was successfully searched.
    • stream

      InputStream stream
      The input stream to read the resource which was found.
    • location

      URL location
      The URL encoding of the input source which was found.
  • Constructor Details

    • FoundSource

      public FoundSource(SourceHabitats.SourceHabitat habitat)
      Only constructor. On return, data is not yet complete.
      Parameters:
      habitat - where the source has been found
  • Method Details

    • getHabitat

      public SourceHabitats.SourceHabitat getHabitat()
      Returns the habitat which was successfully searched.
      Returns:
      the habitat which was successfully searched.
    • getInputStream

      public InputStream getInputStream()
      Get the input stream to read the resource which was found.
      Returns:
      the input stream to read the resource which was found.
    • getLocation

      public URL getLocation()
      Get the URL encoding of the input source which was found.
      Returns:
      the URL encoding of the input source which was found.