Class BinaryResponseParser
- java.lang.Object
-
- org.apache.solr.client.solrj.ResponseParser
-
- org.apache.solr.client.solrj.impl.BinaryResponseParser
-
- Direct Known Subclasses:
StreamingBinaryResponseParser
public class BinaryResponseParser extends ResponseParser
- Since:
- solr 1.3
-
-
Field Summary
Fields Modifier and Type Field Description static String
BINARY_CONTENT_TYPE
protected JavaBinCodec.StringCache
stringCache
-
Constructor Summary
Constructors Constructor Description BinaryResponseParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JavaBinCodec
createCodec()
String
getContentType()
A well behaved ResponseParser will return its content-type.String
getVersion()
String
getWriterType()
NamedList<Object>
processResponse(InputStream body, String encoding)
NamedList<Object>
processResponse(Reader reader)
BinaryResponseParser
setStringCache(JavaBinCodec.StringCache cache)
-
-
-
Field Detail
-
BINARY_CONTENT_TYPE
public static final String BINARY_CONTENT_TYPE
- See Also:
- Constant Field Values
-
stringCache
protected JavaBinCodec.StringCache stringCache
-
-
Method Detail
-
setStringCache
public BinaryResponseParser setStringCache(JavaBinCodec.StringCache cache)
-
getWriterType
public String getWriterType()
- Specified by:
getWriterType
in classResponseParser
-
processResponse
public NamedList<Object> processResponse(InputStream body, String encoding)
- Specified by:
processResponse
in classResponseParser
-
createCodec
protected JavaBinCodec createCodec()
-
getContentType
public String getContentType()
Description copied from class:ResponseParser
A well behaved ResponseParser will return its content-type.- Overrides:
getContentType
in classResponseParser
- Returns:
- the content-type this parser expects to parse
-
getVersion
public String getVersion()
- Overrides:
getVersion
in classResponseParser
- Returns:
- the version param passed to solr
-
processResponse
public NamedList<Object> processResponse(Reader reader)
- Specified by:
processResponse
in classResponseParser
-
-