You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by no...@apache.org on 2009/11/25 12:17:15 UTC

svn commit: r884051 - /lucene/solr/trunk/src/java/org/apache/solr/request/GenericBinaryResponseWriter.java

Author: noble
Date: Wed Nov 25 11:17:14 2009
New Revision: 884051

URL: http://svn.apache.org/viewvc?rev=884051&view=rev
Log: (empty)

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/request/GenericBinaryResponseWriter.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/request/GenericBinaryResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/request/GenericBinaryResponseWriter.java?rev=884051&r1=884050&r2=884051&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/request/GenericBinaryResponseWriter.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/request/GenericBinaryResponseWriter.java Wed Nov 25 11:17:14 2009
@@ -19,6 +19,7 @@
 
 import java.io.OutputStream;
 import java.io.IOException;
+import java.io.Writer;
 
 import org.apache.solr.common.SolrDocumentList;
 import org.apache.solr.common.SolrInputDocument;
@@ -75,4 +76,10 @@
    */
   public abstract SingleResponseWriter getSingleResponseWriter(
       OutputStream out, SolrQueryRequest request, SolrQueryResponse response);
+
+  /**Just to throw Exception So that the eimplementing classes do not have to do the  same
+   */
+  public void write(Writer writer, SolrQueryRequest request, SolrQueryResponse response) throws IOException {
+    throw new RuntimeException("This is a binary writer , Cannot write to a characterstream");
+  }
 }