Comments (5)
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.
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.
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.
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.
Alright, I've added a new interface,
IOStreamConfigurationStore
, that provides the two methodsread
andwrite
which take anInputStream
andOutputStream
, respectively. This interface is implemented by theYamlConfigurationStore
class. I've also added several static methods to theYamlConfigurations
class that correspond to these newread/write
methods. (see commit a5d05e2 indev
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)
- Add option to ignore fields from serialization HOT 1
- GitHub authentication problem HOT 7
- [Help] Unknown class deserialization HOT 16
- Add support for java 16+ HOT 5
- How does the library handle breaking changes(examples provided)? HOT 2
- [BUG] Unable to Initialize "Configuration class 'ConfigYAML' does not contain any (de-)serializable fields." HOT 2
- Achieve cross-version support by making the library compatible with Java 8 HOT 5
- Shade ConfigLib using Java 8 HOT 2
- Charset string problem HOT 6
- Add better support for updating configurations HOT 2
- Native support for Adventure API Component HOT 2
- Config value POST load handler support HOT 12
- Not working jitpack.io HOT 4
- Will comments be added in lists/maps etc? HOT 2
- Publish to maven central HOT 3
- Polymorphic problem HOT 5
- Enums as Keys in Maps HOT 2
- Comments are not processed HOT 1
- Server is offline HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from configlib.