lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r884051 - /lucene/solr/trunk/src/java/org/apache/solr/request/GenericBinaryResponseWriter.java
Date Wed, 25 Nov 2009 11:17:15 GMT
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");
+  }
 }



Mime
View raw message