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 java.lang.String |
contentName |
protected java.lang.String |
contentType |
protected java.io.InputStream |
is |
protected long |
length |
| Constructor and Description |
|---|
RepositoryDocumentStream(java.io.InputStream is,
long length,
java.lang.String contentType,
java.lang.String contentName) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType() |
java.lang.String |
getName() |
java.io.Reader |
getReader() |
java.lang.Long |
getSize() |
java.io.InputStream |
getStream() |
protected final java.io.InputStream is
protected final long length
protected final java.lang.String contentType
protected final java.lang.String contentName
public RepositoryDocumentStream(java.io.InputStream is,
long length,
java.lang.String contentType,
java.lang.String contentName)
public java.lang.Long getSize()
getSize in interface org.apache.solr.common.util.ContentStreamgetSize in class org.apache.solr.common.util.ContentStreamBasepublic java.io.InputStream getStream()
throws java.io.IOException
java.io.IOExceptionpublic java.io.Reader getReader()
throws java.io.IOException
getReader in interface org.apache.solr.common.util.ContentStreamgetReader in class org.apache.solr.common.util.ContentStreamBasejava.io.IOExceptionpublic java.lang.String getContentType()
getContentType in interface org.apache.solr.common.util.ContentStreamgetContentType in class org.apache.solr.common.util.ContentStreamBasepublic java.lang.String getName()
getName in interface org.apache.solr.common.util.ContentStreamgetName in class org.apache.solr.common.util.ContentStreamBase