Class MockIndexOutputWrapper
Used by MockDirectoryWrapper to create an output stream that will throw an System.IO.IOException on fake disk full, track max disk space actually used, and maybe throw random System.IO.IOExceptions.
Inheritance
System.Object
    Lucene.Net.Store.DataOutput
    Lucene.Net.Store.IndexOutput
    MockIndexOutputWrapper
  Implements
System.IDisposable
  Inherited Members
      Lucene.Net.Store.IndexOutput.Dispose()
    
    
      Lucene.Net.Store.DataOutput.WriteBytes(System.Byte[], System.Int32)
    
    
      Lucene.Net.Store.DataOutput.WriteInt32(System.Int32)
    
    
      Lucene.Net.Store.DataOutput.WriteInt16(System.Int16)
    
    
      Lucene.Net.Store.DataOutput.WriteVInt32(System.Int32)
    
    
      Lucene.Net.Store.DataOutput.WriteInt64(System.Int64)
    
    
      Lucene.Net.Store.DataOutput.WriteVInt64(System.Int64)
    
    
      Lucene.Net.Store.DataOutput.WriteString(System.String)
    
    
      Lucene.Net.Store.DataOutput.WriteStringStringMap(System.Collections.Generic.IDictionary<System.String, System.String>)
    
    
      Lucene.Net.Store.DataOutput.WriteStringSet(System.Collections.Generic.ISet<System.String>)
    
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
  Namespace: Lucene.Net.Store
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class MockIndexOutputWrapper : IndexOutput, IDisposable
  Constructors
| Improve this Doc View SourceMockIndexOutputWrapper(MockDirectoryWrapper, IndexOutput, String)
Construct an empty output buffer.
Declaration
public MockIndexOutputWrapper(MockDirectoryWrapper dir, IndexOutput delegate, string name)
  Parameters
| Type | Name | Description | 
|---|---|---|
| MockDirectoryWrapper | dir | |
| Lucene.Net.Store.IndexOutput | delegate | |
| System.String | name | 
Properties
| Improve this Doc View SourceChecksum
Declaration
public override long Checksum { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Int64 | 
Overrides
Lucene.Net.Store.IndexOutput.Checksum
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Length
Declaration
public override long Length { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Int64 | 
Overrides
Lucene.Net.Store.IndexOutput.Length
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Position
Declaration
public override long Position { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Int64 | 
Overrides
Lucene.Net.Store.IndexOutput.Position
  Methods
| Improve this Doc View SourceCopyBytes(DataInput, Int64)
Declaration
public override void CopyBytes(DataInput input, long numBytes)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Lucene.Net.Store.DataInput | input | |
| System.Int64 | numBytes | 
Overrides
Lucene.Net.Store.DataOutput.CopyBytes(Lucene.Net.Store.DataInput, System.Int64)
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | disposing | 
Overrides
Lucene.Net.Store.IndexOutput.Dispose(System.Boolean)
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Flush()
Declaration
public override void Flush()
  Overrides
Lucene.Net.Store.IndexOutput.Flush()
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Seek(Int64)
Declaration
[Obsolete("(4.1) this method will be removed in Lucene 5.0")]
public override void Seek(long pos)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int64 | pos | 
Overrides
Lucene.Net.Store.IndexOutput.Seek(System.Int64)
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ToString()
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| System.String | 
Overrides
System.Object.ToString()
  
    |
    Improve this Doc
  
  
    View Source
  
  
  WriteByte(Byte)
Declaration
public override void WriteByte(byte b)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Byte | b | 
Overrides
Lucene.Net.Store.DataOutput.WriteByte(System.Byte)
  
    |
    Improve this Doc
  
  
    View Source
  
  
  WriteBytes(Byte[], Int32, Int32)
Declaration
public override void WriteBytes(byte[] b, int offset, int len)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Byte[] | b | |
| System.Int32 | offset | |
| System.Int32 | len | 
Overrides
Lucene.Net.Store.DataOutput.WriteBytes(System.Byte[], System.Int32, System.Int32)
  Implements
      System.IDisposable