Add basic K2 storage framework implementation.

Due to the size of the commit, I'm submitting the unit tests in a separate request.
I also would go with the former.

John Maheswaran | Software Engineering Intern | Payments: Billing Security |
 *maheswaran@google.com <maheswaran@google.com>*


On Tue, Jun 24, 2014 at 1:14 PM, Daryl Seah <notifications@github.com>
wrote:

> In
> java/src/main/java/com/google/k2crypto/storage/IllegalAddressException.java:
>
> > + * distributed under the License is distributed on an "AS IS" BASIS,
> > + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> > + * See the License for the specific language governing permissions and
> > + * limitations under the License.
> > + */
> > +
> > +package com.google.k2crypto.storage;
> > +
> > +import com.google.k2crypto.K2Exception;
> > +
> > +/**
> > + * Exception thrown when a given string is not a valid storage address (URI).
> > + *
> > + * @author darylseah@gmail.com (Daryl Seah)
> > + */
> > +public class IllegalAddressException extends K2Exception {
>
> I wouldn't classify this particular one as an IOException. Perhaps
> StoreException? That said, do we want all K2 exceptions to extend
> K2Exception or should some extend directly from Java's built-in exception
> classes? (I was thinking the former for consistency.)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/google/K2/pull/12/files#r14148955>.
>