Interface IResourceRetriever

All Known Implementing Classes:
DefaultResourceRetriever

public interface IResourceRetriever
Interface for classes that can retrieve data from resources by URL.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Gets the byte array that are retrieved from the source URL.
    Gets the InputStream that connect with source URL for retrieving data from that connection.
  • Method Details

    • getInputStreamByUrl

      InputStream getInputStreamByUrl (URL url) throws IOException
      Gets the InputStream that connect with source URL for retrieving data from that connection.
      Parameters:
      url - the source URL
      Returns:
      the input stream or null if the retrieving failed
      Throws:
      IOException - if any input/output issue occurs
    • getByteArrayByUrl

      byte[] getByteArrayByUrl (URL url) throws IOException
      Gets the byte array that are retrieved from the source URL.
      Parameters:
      url - the source URL
      Returns:
      the byte array or null if the retrieving failed
      Throws:
      IOException - if any input/output issue occurs