ResourceLoader (Solr 3.6.2 API)
Keywords: org.apache.solr.common.ResourceLoader interface

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.solr.common
Interface ResourceLoader

All Known Implementing Classes:
  SolrResourceLoader

    public interface ResourceLoader

Since:
  solr 1.3

Method Summary
`List<String>` | `getLines(String resource)` Accesses a resource by name and returns the (non comment) lines containing data.
`Object` | `newInstance(String cname, String... subpackages)`
`InputStream` | `openResource(String resource)`

Method Detail

### openResource

    InputStream openResource(String resource)
                             throws IOException

  Throws:
    `IOException`

### getLines

    List<String> getLines(String resource)
                          throws IOException

  Accesses a resource by name and returns the (non comment) lines containing data.

  A comment line is any line that starts with the character "#"

  Parameters:
    `resource` -
  Returns:
    a list of non-blank non-comment lines with whitespace trimmed from front and back.
  Throws:
    `IOException`

### newInstance

    Object newInstance(String cname,
                       String... subpackages)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD