🍪 Cookie serializer and deserializer library for Java.
Please type it in your build.gradle file.
repositories {
jcenter()
}
dependencies {
compile 'moe.pine:bottler:0.1.1'
}
CookieManager manager = CookieManager.getInstance();
CookieStore store = manager.getCookieStore();
ByteArrayOutputStream os = new ByteArrayOutputStream();
CookieStoreUtils.writeTo(store, os); // Save!
store.removeAll();
ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray());
CookieStoreUtils.readFrom(store, is); // Restore!!
$ ./gradlew clean check
$ ./gradlew clean assemble bintrayUpload
MIT © Emoji Generator