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.ContentStreamgetSize in class org.apache.solr.common.util.ContentStreamBasepublic InputStream getStream() throws IOException
IOExceptionpublic Reader getReader() throws IOException
getReader in interface org.apache.solr.common.util.ContentStreamgetReader in class org.apache.solr.common.util.ContentStreamBaseIOExceptionpublic String getContentType()
getContentType in interface org.apache.solr.common.util.ContentStreamgetContentType in class org.apache.solr.common.util.ContentStreamBasepublic String getName()
getName in interface org.apache.solr.common.util.ContentStreamgetName in class org.apache.solr.common.util.ContentStreamBase