Back to project page SQLiteMigrationManager.
The source code is released under:
Apache License
If you think the Android project SQLiteMigrationManager listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * Layer Android SDK//www . java 2 s . c om * * Created by Steven Jones on 6/6/14 * Copyright (c) 2013 Layer. All rights reserved. */ package com.layer.sqlite.migrations; import android.content.Context; import com.layer.sqlite.datasource.ResourceDataSource; import java.io.InputStream; public class ResourceMigration extends Migration { private final Context mContext; public ResourceMigration(Context context, String path) { super(path); mContext = context; if (!ResourceDataSource.resourceExists(mContext, path)) { throw new IllegalArgumentException("Could not find '" + path + "'"); } } @Override public InputStream getStream() { return ResourceDataSource.getResourceAsStream(mContext, getPath()); } }