Class FileToByteArraySampleStream

Namespace
NOpenNLP.Tools.Formats.Convert
Assembly
NOpenNLP.Tools.dll
public class FileToByteArraySampleStream : FilterObjectStream<FileInfo?, byte[]?>, IObjectStream<byte[]?>, IDisposable
Inheritance
FileToByteArraySampleStream
Implements
Inherited Members

Constructors

FileToByteArraySampleStream(IObjectStream<FileInfo?>)

public FileToByteArraySampleStream(IObjectStream<FileInfo?> samples)

Parameters

samples IObjectStream<FileInfo>

Methods

Read()

Returns the next object. Calling this method repeatedly until it returns null will return each object from the underlying source exactly once.

public override byte[]? Read()

Returns

byte[]

the next object or null to signal that the stream is exhausted

Exceptions

IOException

if there is an error during reading

IOException

if there is an error during reading