Add autoconf checks for platforms without IPv6
[mono.git] / mcs / class / monodoc / Monodoc / storage / NullStorage.cs
1 using System;
2 using System.IO;
3 using System.Xml;
4 using System.Linq;
5 using System.Collections.Generic;
6
7 namespace Monodoc.Storage
8 {
9         // A storage that doesn't store
10         public class NullStorage : IDocStorage
11         {
12                 public NullStorage ()
13                 {
14                 }
15
16                 public bool SupportRevision {
17                         get {
18                                 return false;
19                         }
20                 }
21
22                 public IDocRevisionManager RevisionManager {
23                         get {
24                                 return null;
25                         }
26                 }
27
28                 public bool SupportChange {
29                         get {
30                                 return true;
31                         }
32                 }
33
34                 public string Store (string id, string text)
35                 {
36                         return id;
37                 }
38
39                 public string Store (string id, byte[] data)
40                 {
41                         return id;
42                 }
43
44                 public string Store (string id, Stream stream)
45                 {
46                         return id;
47                 }
48
49                 public Stream Retrieve (string id)
50                 {
51                         return null;
52                 }
53
54                 public IEnumerable<string> GetAvailableIds ()
55                 {
56                         return Enumerable.Empty<string> (); 
57                 }
58
59                 public void Dispose ()
60                 {
61                 }
62         }
63 }