Back to project page LeBlue.
The source code is released under:
Apache License
If you think the Android project LeBlue listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package houtbecke.rs.le.interceptor; /* ww w. ja v a2s .co m*/ import android.content.Context; import com.google.gson.Gson; import java.io.FileOutputStream; import houtbecke.rs.le.session.Event; import houtbecke.rs.le.session.EventSink; public class AndroidEventSinkUtil implements EventSinkUtil{ @Override public String write(EventSink eventSink) { Gson gson = new Gson(); return gson.toJson(eventSink.getEvents()); } }