org.apache.solr.common
Interface ResourceLoader
public interface ResourceLoader
- Since:
- solr 1.3
|
Method Summary |
java.util.List<java.lang.String> |
getLines(java.lang.String resource)
Accesses a resource by name and returns the (non comment) lines
containing data. |
java.lang.Object |
newInstance(java.lang.String cname,
java.lang.String... subpackages)
|
java.io.InputStream |
openResource(java.lang.String resource)
|
openResource
java.io.InputStream openResource(java.lang.String resource)
throws java.io.IOException
- Throws:
java.io.IOException
getLines
java.util.List<java.lang.String> getLines(java.lang.String resource)
throws java.io.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:
java.io.IOException
newInstance
java.lang.Object newInstance(java.lang.String cname,
java.lang.String... subpackages)
Copyright © 2006-2010 Hibernate. All Rights Reserved.