Constructor and Description |
---|
TAQWriter(File file)
Create a writer that writes to the specified file using the default
configuration.
|
TAQWriter(File file,
TAQConfig config)
Create a writer that writes to the specified file.
|
TAQWriter(OutputStream out)
Create a writer that writes to the specified output stream using the
default configuration.
|
TAQWriter(OutputStream out,
TAQConfig config)
Create a writer that writes to the specified output stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
write(TAQ.Quote record)
Write a Quote record.
|
void |
write(TAQ.Trade record)
Write a Trade record.
|
public TAQWriter(File file) throws FileNotFoundException
file
- a fileFileNotFoundException
- if the file cannot be openedpublic TAQWriter(File file, TAQConfig config) throws FileNotFoundException
file
- a fileconfig
- the configurationFileNotFoundException
- if the file cannot be openedpublic TAQWriter(OutputStream out)
out
- an output streampublic TAQWriter(OutputStream out, TAQConfig config)
out
- an output streamconfig
- the configurationpublic void write(TAQ.Trade record)
record
- a Trade recordpublic void write(TAQ.Quote record)
record
- a Quote recordpublic void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2017. All rights reserved.