public class StockTickPersister extends Object implements EventSource
| Constructor and Description |
|---|
StockTickPersister() |
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 © 2001–2015 JBoss by Red Hat. All rights reserved.