Class HttpPoster.RepositoryDocumentStream
- java.lang.Object
-
- org.apache.solr.common.util.ContentStreamBase
-
- org.apache.manifoldcf.agents.output.solr.HttpPoster.RepositoryDocumentStream
-
- All Implemented Interfaces:
org.apache.solr.common.util.ContentStream
- Enclosing class:
- HttpPoster
protected static class HttpPoster.RepositoryDocumentStream extends org.apache.solr.common.util.ContentStreamBase
Class for importing documents into Solr via SolrJ
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.common.util.ContentStreamBase
org.apache.solr.common.util.ContentStreamBase.ByteArrayStream, org.apache.solr.common.util.ContentStreamBase.FileStream, org.apache.solr.common.util.ContentStreamBase.StringStream, org.apache.solr.common.util.ContentStreamBase.URLStream
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
contentName
protected java.lang.String
contentType
protected java.io.InputStream
is
protected long
length
-
Constructor Summary
Constructors Constructor Description RepositoryDocumentStream(java.io.InputStream is, long length, java.lang.String contentType, java.lang.String contentName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContentType()
java.lang.String
getName()
java.io.Reader
getReader()
java.lang.Long
getSize()
java.io.InputStream
getStream()
-
-
-
Method Detail
-
getSize
public java.lang.Long getSize()
- Specified by:
getSize
in interfaceorg.apache.solr.common.util.ContentStream
- Overrides:
getSize
in classorg.apache.solr.common.util.ContentStreamBase
-
getStream
public java.io.InputStream getStream() throws java.io.IOException
- Throws:
java.io.IOException
-
getReader
public java.io.Reader getReader() throws java.io.IOException
- Specified by:
getReader
in interfaceorg.apache.solr.common.util.ContentStream
- Overrides:
getReader
in classorg.apache.solr.common.util.ContentStreamBase
- Throws:
java.io.IOException
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interfaceorg.apache.solr.common.util.ContentStream
- Overrides:
getContentType
in classorg.apache.solr.common.util.ContentStreamBase
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceorg.apache.solr.common.util.ContentStream
- Overrides:
getName
in classorg.apache.solr.common.util.ContentStreamBase
-
-