Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.04 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.04 KB

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