Interface Resource


@Deprecated public interface Resource
Deprecated.
A binary resource. The impl is agnostic of the content type
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    get(Resource.Consumer resourceConsumer)
    Deprecated.
    read a file/resource.
    Deprecated.
    This is a full path.
  • Method Details

    • name

      String name()
      Deprecated.
      This is a full path. e.g schema.xml, solrconfig.xml, lang/stopwords.txt etc
    • get

      void get(Resource.Consumer resourceConsumer) throws SolrException
      Deprecated.
      read a file/resource. The caller should consume the stream completely and should not hold a reference to this stream. This method closes the stream soon after the method returns
      Parameters:
      resourceConsumer - This should be a full path. e.g schema.xml, solrconfig.xml, lang/stopwords.txt etc
      Throws:
      SolrException