Class for writing BIT files to disk.
More...
|
| BitFileWriter (FileInfo file) |
| Create a BIT file writer for the specified disk file.
|
|
| BitFileWriter (Stream outputStream) |
| Create a BIT file writer for the specified stream.
|
|
void | Close () |
| Append the final EOF TIF marker to the stream and close the back-end stream.
|
|
void | Write (BitFile bitFile) |
| Write the specified BIT file.
|
|
void | Write (IList< BitFile > bitFiles) |
| Write a list of logical BIT files to this writer.
|
|
Class for writing BIT files to disk.
Typical usage:
BitFileWriter writer = new BitFileWriter(new FileInfo("path/to/file.bit"));
writer.Write(bitFile);
writer.Close();
- Author
- Petroware AS
◆ BitFileWriter() [1/2]
Create a BIT file writer for the specified stream.
- Parameters
-
outputStream | Stream to write. Non-null. |
- Exceptions
-
ArgumentNullException | If outputStream is null. |
◆ BitFileWriter() [2/2]
Create a BIT file writer for the specified disk file.
- Parameters
-
file | Disk file to write. Non-null. |
- Exceptions
-
ArgumentNullException | If file is null. |
◆ Write() [1/2]
Write the specified BIT file.
Multiple logical BIT files can be written in sequence to the same stream. When writing is done, close the writer with Close().
- Parameters
-
bitFile | BIT file to write. Non-null. |
- Exceptions
-
ArgumentNullException | If bitFile is null. |
◆ Write() [2/2]
void Write |
( |
IList< BitFile > | bitFiles | ) |
|
Write a list of logical BIT files to this writer.
This is equivalent to calling Write(BitFile) in sequence.
- Parameters
-
bitFiles | BIT files to write. Non-null. |
- Exceptions
-
ArgumentNullException | If bitFiles is null. |
The documentation for this class was generated from the following file:
- Petroware/LogIo/Bit/BitFileWriter.cs