Initial revision
[beagle.git] / indexer / ContentText.cs
blob666e9a8cac0bd8656c0d071afbf3b9c4e262e739
2 using System;
3 using System.Collections;
4 using System.IO;
6 namespace Dewey {
8 public class ContentText : Content {
10 public ContentText() : base() { }
12 public override String[] HandledMimeTypes() {
13 return new String[] { "text/plain" };
16 public override bool Read(Stream content_stream) {
17 StreamReader sr = new StreamReader(content_stream);
18 String body = sr.ReadToEnd();
19 SetBody(body);
20 return true;