Giter VIP home page Giter VIP logo

Comments (5)

WiIIiam278 avatar WiIIiam278 commented on June 15, 2024 1

Hey, thanks for sharing your idea. How would you like to use such an API? From my understanding, you would like me to add the following two methods (and their overloads) to this library:

YamlConfigurationStore.load(InputStream)

YamlConfigurations.load(InputStream, Class<T>)

Did I get this right or do you require something else?

Yep - that's absolutely right. Would be very handy. :)

from configlib.

Exlll avatar Exlll commented on June 15, 2024 1

Thanks for taking the time to test it. 🙂 I've just published version 4.3.0 which contains these changes.

If you'd like anything else, let me know!

from configlib.

Exlll avatar Exlll commented on June 15, 2024

Hey, thanks for sharing your idea. How would you like to use such an API? From my understanding, you would like me to add the following two methods (and their overloads) to this library:

YamlConfigurationStore.load(InputStream)
YamlConfigurations.load(InputStream, Class<T>)

Did I get this right or do you require something else?

from configlib.

Exlll avatar Exlll commented on June 15, 2024

Alright, I've added a new interface, IOStreamConfigurationStore, that provides the two methods read and write which take an InputStream and OutputStream, respectively. This interface is implemented by the YamlConfigurationStore class. I've also added several static methods to the YamlConfigurations class that correspond to these new read/write methods. (see commit a5d05e2 in dev branch)

Would you like to give it a try and give me some feedback before I merge it into the master branch?

from configlib.

WiIIiam278 avatar WiIIiam278 commented on June 15, 2024

Alright, I've added a new interface, IOStreamConfigurationStore, that provides the two methods read and write which take an InputStream and OutputStream, respectively. This interface is implemented by the YamlConfigurationStore class. I've also added several static methods to the YamlConfigurations class that correspond to these new read/write methods. (see commit a5d05e2 in dev branch)

Would you like to give it a try and give me some feedback before I merge it into the master branch?

Just gave this a build and tested with my project locally - it works great! Love the idea of exposing write methods via OutputStreams, that's a nice touch. Thanks a ton for your work!

from configlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.