Class OutputStreamDataOutput
A DataOutput wrapping a plain Stream.
Implements
Inherited Members
Namespace: Lucene.Net.Store
Assembly: Lucene.Net.dll
Syntax
public class OutputStreamDataOutput : DataOutput, IDisposable
Constructors
OutputStreamDataOutput(Stream)
A DataOutput wrapping a plain Stream.
Declaration
public OutputStreamDataOutput(Stream os)
Parameters
Type | Name | Description |
---|---|---|
Stream | os |
Methods
Dispose()
Releases all resources used by the OutputStreamDataOutput.
Declaration
public void Dispose()
Dispose(bool)
Releases resources used by the OutputStreamDataOutput and if overridden in a derived class, optionally releases unmanaged resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
|
WriteByte(byte)
Writes a single byte.
The most primitive data type is an eight-bit byte. Files are accessed as sequences of bytes. All other data types are defined as sequences of bytes, so file formats are byte-order independent.Declaration
public override void WriteByte(byte b)
Parameters
Type | Name | Description |
---|---|---|
byte | b |
Overrides
See Also
ReadByte()
WriteBytes(byte[], int, int)
Writes an array of bytes.
Declaration
public override void WriteBytes(byte[] b, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
byte[] | b | the bytes to write |
int | offset | the offset in the byte array |
int | length | the number of bytes to write |