Skip to content

emoji-gen/bottler

Repository files navigation

Bottler  Build Status codecov

🍪 Cookie serializer and deserializer library for Java.

Getting Started

Please type it in your build.gradle file.

repositories {
    jcenter()
}

dependencies {
    compile 'moe.pine:bottler:0.1.1'
}

Usage

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!!

Development

Test

$ ./gradlew clean check

Upload Bintray

$ ./gradlew clean assemble bintrayUpload

License

MIT © Emoji Generator