lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r916438 - /lucene/lucene.net/trunk/C#/src/Lucene.Net/Document/Field.cs
Date Thu, 25 Feb 2010 20:24:49 GMT
Author: digy
Date: Thu Feb 25 20:24:49 2010
New Revision: 916438

URL: http://svn.apache.org/viewvc?rev=916438&view=rev
Log:
LUCENENET-343 Use TextReader instead of StreamReader in Field ctor
Andy Pook's TextReader-2.9.2.patch 

Modified:
    lucene/lucene.net/trunk/C#/src/Lucene.Net/Document/Field.cs

Modified: lucene/lucene.net/trunk/C#/src/Lucene.Net/Document/Field.cs
URL: http://svn.apache.org/viewvc/lucene/lucene.net/trunk/C%23/src/Lucene.Net/Document/Field.cs?rev=916438&r1=916437&r2=916438&view=diff
==============================================================================
--- lucene/lucene.net/trunk/C#/src/Lucene.Net/Document/Field.cs (original)
+++ lucene/lucene.net/trunk/C#/src/Lucene.Net/Document/Field.cs Thu Feb 25 20:24:49 2010
@@ -201,7 +201,7 @@
 		/// </summary>
 		public override System.IO.TextReader ReaderValue()
 		{
-			return fieldsData is System.IO.StreamReader?(System.IO.StreamReader) fieldsData:null;
+			return fieldsData is System.IO.TextReader?(System.IO.TextReader) fieldsData:null;
 		}
 		
 		/// <summary>The value of the field in Binary, or null.  If null, the Reader value,
@@ -260,7 +260,7 @@
 		}
 		
 		/// <summary>Expert: change the value of this field.  See <a href="#setValue(java.lang.String)">setValue(String)</a>.
</summary>
-		public void  SetValue(System.IO.StreamReader value_Renamed)
+		public void  SetValue(System.IO.TextReader value_Renamed)
 		{
 			if (isBinary)
 			{
@@ -486,7 +486,7 @@
 		/// <param name="reader">The reader with the content
 		/// </param>
 		/// <throws>  NullPointerException if name or reader is <code>null</code>
</throws>
-		public Field(System.String name, System.IO.StreamReader reader):this(name, reader, TermVector.NO)
+		public Field(System.String name, System.IO.TextReader reader):this(name, reader, TermVector.NO)
 		{
 		}
 		
@@ -503,7 +503,7 @@
 		/// <param name="termVector">Whether term vector should be stored
 		/// </param>
 		/// <throws>  NullPointerException if name or reader is <code>null</code>
</throws>
-		public Field(System.String name, System.IO.StreamReader reader, TermVector termVector)
+		public Field(System.String name, System.IO.TextReader reader, TermVector termVector)
 		{
 			if (name == null)
 				throw new System.NullReferenceException("name cannot be null");



Mime
View raw message