C# Class Lucene.Net.Store.MockRAMOutputStream

Used by MockRAMDirectory to create an output stream that will throw an IOException on fake disk full, track max disk space actually used, and maybe throw random IOExceptions.
Inheritance: Lucene.Net.Store.RAMOutputStream
显示文件 Open project: synhershko/lucene.net

Public Methods

Method Description
Flush ( ) : void
MockRAMOutputStream ( MockRAMDirectory dir, Lucene.Net.Store.RAMFile f, System name ) : System

Construct an empty output buffer.

WriteByte ( byte b ) : void
WriteBytes ( byte b, int offset, int len ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Flush() public method

public Flush ( ) : void
return void

MockRAMOutputStream() public method

Construct an empty output buffer.
public MockRAMOutputStream ( MockRAMDirectory dir, Lucene.Net.Store.RAMFile f, System name ) : System
dir MockRAMDirectory
f Lucene.Net.Store.RAMFile
name System
return System

WriteByte() public method

public WriteByte ( byte b ) : void
b byte
return void

WriteBytes() public method

public WriteBytes ( byte b, int offset, int len ) : void
b byte
offset int
len int
return void