2 // Microsoft.Web.Services.Dime.DimeReader.cs
4 // Name: Duncan Mak (duncan@ximian.com)
6 // Copyright (C) Ximian, Inc. 2003
12 namespace Microsoft
.Web
.Services
.Dime
{
14 public class DimeReader
20 public DimeReader (Stream stream
)
23 throw new ArgumentNullException (
24 Locale
.GetText ("Argument is null."));
26 if (stream
.CanRead
== false)
27 throw new ArgumentException (
28 Locale
.GetText ("The stream is not readable"));
37 throw new InvalidOperationException (
38 Locale
.GetText ("The stream is currently open."));
45 get { return stream.CanRead; }
49 public DimeRecord
ReadRecord ()
52 throw new InvalidOperationException (
53 Locale
.GetText ("The stream is currently closed."));
56 throw new NotImplementedException ();