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
IOExceptionpublic void openForRead(Reader reader, long baseTimestamp) throws FileNotFoundException
FileNotFoundExceptionpublic void save(StockTick tick) throws IOException
IOExceptionpublic StockTick load() throws ParseException, IOException
ParseExceptionIOExceptionpublic void close()
throws IOException
IOExceptionpublic Event<StockTick> getNext()
getNext in interface EventSourcepublic boolean hasNext()
hasNext in interface EventSourceCopyright © 2020. All rights reserved.