Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming Load/Save API #17

Open
zml2008 opened this issue Jun 9, 2015 · 2 comments
Open

Streaming Load/Save API #17

zml2008 opened this issue Jun 9, 2015 · 2 comments

Comments

@zml2008
Copy link

zml2008 commented Jun 9, 2015

To use toml4j with Configurate, it would be helpful to provide a way to bypass the creation of the toml4j data structures, instead providing callback methods (like various XML parsers) or an iterator-style system (think jackson-core, or Gson's JsonReader) for reading and the equivalent for writing (again, like jackson or Gson's JsonWriter). This becomes more efficient for larger configurations and reduces the footprint for potential issues dealing with converting between different types of objects.

@mwanji
Copy link
Owner

mwanji commented Jun 12, 2015

This is definitely a good idea. I probably won't have time to include this in 1.0 (depending on when the spec goes 1.0), but it will be added.

Which callback-based XML parsers do you have in mind? The only one I can think of right now is SafeSax. I'll have a look at them, Jackson and Gson for inspiration.

@zml2008
Copy link
Author

zml2008 commented Jun 21, 2015

I'd been thinking of the sax-style API, yeah -- I think there is some implementation provided with the jdk that is what I have used for stuff in the past.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants