protected static class HttpPoster.RepositoryDocumentStream
extends 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
Modifier and Type | Field and Description |
---|---|
protected String |
contentName |
protected String |
contentType |
protected InputStream |
is |
protected long |
length |
Constructor and Description |
---|
HttpPoster.RepositoryDocumentStream(InputStream is,
long length,
String contentType,
String contentName) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
String |
getName() |
Reader |
getReader() |
Long |
getSize() |
InputStream |
getStream() |
protected final InputStream is
protected final long length
protected final String contentType
protected final String contentName
public HttpPoster.RepositoryDocumentStream(InputStream is, long length, String contentType, String contentName)
public Long getSize()
getSize
in interface org.apache.solr.common.util.ContentStream
getSize
in class org.apache.solr.common.util.ContentStreamBase
public InputStream getStream() throws IOException
IOException
public Reader getReader() throws IOException
getReader
in interface org.apache.solr.common.util.ContentStream
getReader
in class org.apache.solr.common.util.ContentStreamBase
IOException
public String getContentType()
getContentType
in interface org.apache.solr.common.util.ContentStream
getContentType
in class org.apache.solr.common.util.ContentStreamBase
public String getName()
getName
in interface org.apache.solr.common.util.ContentStream
getName
in class org.apache.solr.common.util.ContentStreamBase