Back to project page videoMerge.
The source code is released under:
Apache License
If you think the Android project videoMerge 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 com.dragonplayer.merge.utils; /*from www.ja v a 2 s.c om*/ import java.io.*; public class FileMover { String destination; InputStream inputStream; public FileMover(InputStream inputstream, String dstPath) { inputStream = inputstream; destination = dstPath; } public void moveIt() throws IOException { BufferedOutputStream bufferedoutputstream = new BufferedOutputStream(new FileOutputStream(new File(destination))); byte temp[] = new byte[1024]; do { int len = inputStream.read(temp); if(len < 0) { bufferedoutputstream.flush(); bufferedoutputstream.close(); return; } bufferedoutputstream.write(temp, 0, len); } while(true); } }