A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Iterating over JYAML data - deserialization
Joined: Jul 18, 2012
Jan 25, 2013 16:40:11
For some reason Im having to work with a yaml file, using JYaml like this:
I can retrieve the file into the following by doing this, but I think this looks a bit expensive:
, String>> out = Yaml.loadType(new File("src/tracking.yml"), ArrayList.class);
Is there any way I can iterate over this? As far as I can tell, its a hashmap within a list.
Also is it possible to just get single values, like all of the numeric values?
Even the header the dfa?
Not much info on the jyaml site, would have preferred to use snakeyaml, but my boss wont allow it
Joined: Aug 07, 2007
Jan 26, 2013 07:29:20
I've never used Jyaml so sorry but I can't help you but you could try telling your boss Jyaml is no longer supported and no new releases have been issued since 2007 so maybe it's time to move to something like snakeyaml which is still supported.
I agree. Here's the link:
subject: Iterating over JYAML data - deserialization
Which data structure to use for making a DFA Machine
ArrayList of ArrayList<String>
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015