public class SpectrumWriter extends Object
Constructor and Description |
---|
SpectrumWriter(OutputStream output)
Creates a new writer based on the given output stream.
|
Modifier and Type | Method and Description |
---|---|
void |
writeSpectrum(ISpectrum spectrum)
Serializes a spectrum instance into binary streams.
|
void |
writeTransaction(Transaction transaction)
Serializes a transaction instance into binary streams.
|
public SpectrumWriter(OutputStream output) throws IOException
output
- binary stream to write execution data toIOException
- if the header can't be writtenpublic void writeSpectrum(ISpectrum spectrum) throws IOException
spectrum
- IOException
- if the data can't be writtenpublic void writeTransaction(Transaction transaction) throws IOException
transaction
- IOException
Copyright © 2010–2019 GZoltar. All rights reserved.