Package org.apache.solr.crossdc.common
Class MirroredSolrRequest.ExposedByteArrayContentStream
- java.lang.Object
-
- org.apache.solr.common.util.ContentStreamBase
-
- org.apache.solr.crossdc.common.MirroredSolrRequest.ExposedByteArrayContentStream
-
- All Implemented Interfaces:
org.apache.solr.common.util.ContentStream
- Enclosing class:
- MirroredSolrRequest<T extends org.apache.solr.client.solrj.SolrResponse>
public static class MirroredSolrRequest.ExposedByteArrayContentStream extends org.apache.solr.common.util.ContentStreamBase
-
-
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
-
-
Constructor Summary
Constructors Constructor Description ExposedByteArrayContentStream(byte[] bytes, String source, String contentType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
byteArray()
InputStream
getStream()
static MirroredSolrRequest.ExposedByteArrayContentStream
of(org.apache.solr.common.util.ContentStream cs)
String
toString()
-
-
-
Method Detail
-
byteArray
public byte[] byteArray()
-
getStream
public InputStream getStream() throws IOException
- Throws:
IOException
-
of
public static MirroredSolrRequest.ExposedByteArrayContentStream of(org.apache.solr.common.util.ContentStream cs) throws IOException
- Throws:
IOException
-
-