19 using Lucene.Net.Support;
21 namespace Lucene.Net.Store
32 private bool isDisposed;
40 public override byte ReadByte()
42 byte b = main.ReadByte();
47 public override void ReadBytes(byte[] b,
int offset,
int len)
49 main.ReadBytes(b, offset, len);
50 digest.Update(b, offset, len);
53 public virtual long Checksum
55 get {
return digest.Value; }
58 protected override void Dispose(
bool disposing)
60 if (isDisposed)
return;
74 public override long FilePointer
76 get {
return main.FilePointer; }
79 public override void Seek(
long pos)
81 throw new System.SystemException(
"not allowed");
84 public override long Length()