public class StockTickPersister extends Object implements EventSource
Constructor and Description |
---|
StockTickPersister() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Event<StockTick> |
getNext() |
boolean |
hasNext() |
StockTick |
load() |
void |
openForRead(Reader reader,
long baseTimestamp) |
void |
openForSave(Writer writer) |
void |
save(StockTick tick) |
public void openForSave(Writer writer) throws IOException
IOException
public void openForRead(Reader reader, long baseTimestamp) throws FileNotFoundException
FileNotFoundException
public void save(StockTick tick) throws IOException
IOException
public StockTick load() throws ParseException, IOException
ParseException
IOException
public void close() throws IOException
IOException
public Event<StockTick> getNext()
getNext
in interface EventSource
public boolean hasNext()
hasNext
in interface EventSource
Copyright © 2020. All rights reserved.