org.apache.solr.handler

## Class ContentStreamLoader

- java.lang.Object
- - org.apache.solr.handler.ContentStreamLoader

-     public abstract class ContentStreamLoader
      extends Object

  Load a `ContentStream` into Solr

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected String` | `errHeader`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ContentStreamLoader()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getErrHeader()`
    `abstract void` | `load(SolrQueryRequest req, SolrQueryResponse rsp, ContentStream stream)` Loaders are responsible for closing the stream
    `void` | `setErrHeader(String errHeader)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### errHeader

          protected String errHeader

  - ### Constructor Detail

    - #### ContentStreamLoader

          public ContentStreamLoader()

  - ### Method Detail

    - #### getErrHeader

          public String getErrHeader()

    - #### setErrHeader

          public void setErrHeader(String errHeader)

    - #### load

          public abstract void load(SolrQueryRequest req,
                                    SolrQueryResponse rsp,
                                    ContentStream stream)
                             throws Exception

      Loaders are responsible for closing the stream
      Parameters:
        `req` - The input `SolrQueryRequest`
        `rsp` - The response, in case the Loader wishes to add anything
        `stream` - The `ContentStream` to add
      Throws:
        `Exception`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.