Created
January 14, 2013 01:12
-
-
Save krisskross/4527106 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TrueFxDecoder decoder = new TrueFxDecoder(); | |
FileReader<TrueFxData> reader = FileReader.create(decoder, file.listFiles()); | |
long periodLength = TimeUnit.DAYS.toMillis(1); | |
PeriodEntries<TrueFxData> periods = PeriodEntries.create(reader, periodLength); | |
for (List<TrueFxData> entries : periods) { | |
// data for each day | |
for (TrueFxData entry : entries) { | |
// process each entry | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment