S
- The SoundSample
(sub-)type on which the
SampleWriter
implementation is to operate on.AutoCloseable
, SampleReader<S>
, SamplingRateAccessor
, org.refcodes.io.RowReader<S>
, org.refcodes.mixin.IndexAccessor
CsvMonoSampleReader
, CsvSoundSampleReader
public abstract class AbstractCsvSampleReader<S extends SoundSample> extends Object implements SampleReader<S>
AbstractCsvSampleReader
provides a foundation to read sound
samples from a CSV file.org.refcodes.mixin.IndexAccessor.IndexBuilder<B extends org.refcodes.mixin.IndexAccessor.IndexBuilder<B>>, org.refcodes.mixin.IndexAccessor.IndexMutator, org.refcodes.mixin.IndexAccessor.IndexProperty
SamplingRateAccessor.SamplingRateBuilder<B extends SamplingRateAccessor.SamplingRateBuilder<B>>, SamplingRateAccessor.SamplingRateMutator, SamplingRateAccessor.SamplingRateProperty
Modifier and Type | Field | Description |
---|---|---|
protected org.refcodes.tabular.CsvStringRecordReader |
_csvReader |
Modifier | Constructor | Description |
---|---|---|
|
AbstractCsvSampleReader(File aFile) |
Constructs the
AbstractCsvSampleReader for writing sound samples
to a CSV file or stream. |
|
AbstractCsvSampleReader(InputStream aInputStream) |
Constructs the
AbstractCsvSampleReader for writing sound samples
to a CSV file or stream. |
protected |
AbstractCsvSampleReader(org.refcodes.tabular.CsvStringRecordReader aCsvReader) |
Constructs the
AbstractCsvSampleReader for writing sound samples
to a CSV file or stream. |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
protected void |
doProbeHeader() |
Reads the header if it has not been read yet.
|
boolean |
hasNext() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSamplingRate
public AbstractCsvSampleReader(File aFile) throws ZipException, IOException
AbstractCsvSampleReader
for writing sound samples
to a CSV file or stream.aFile
- The File
where to write the CSV records to.IOException
- thrown in case there was an I/O related problem.ZipException
- Signals that a Zip exception of some sort has
occurred.public AbstractCsvSampleReader(InputStream aInputStream) throws IOException
AbstractCsvSampleReader
for writing sound samples
to a CSV file or stream.aInputStream
- The InputStream
where to write the CSV
records to.IOException
- thrown in case there was an I/O related problem.protected AbstractCsvSampleReader(org.refcodes.tabular.CsvStringRecordReader aCsvReader)
AbstractCsvSampleReader
for writing sound samples
to a CSV file or stream.aCsvReader
- The CsvStringRecordReader
with which to write
the CSV records with.public boolean hasNext()
hasNext
in interface org.refcodes.io.RowReader<S extends SoundSample>
public void close() throws IOException
close
in interface AutoCloseable
IOException
protected void doProbeHeader() throws IOException
IOException
- thrown in case of an IO related problem.Copyright © 2021. All rights reserved.