Back to project page Android-NetPowerctrl-Shared.
The source code is released under:
Copyright (c) 2014, David Gr?ff All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: *...
If you think the Android project Android-NetPowerctrl-Shared 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 oly.netpowerctrl.device_base.data; /*www . ja va 2s . co m*/ import android.support.annotation.NonNull; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; /** * A storable object have to provide a unique id that is file system compatible and * have to be loadable and storable by a stream. */ public interface StorableInterface { public String getStorableName(); public void load(@NonNull InputStream input) throws IOException, ClassNotFoundException; public void save(@NonNull OutputStream output) throws IOException; }