- import java.io.*;
- public class CopyMp3 {
- public static void main(String[] args) throws IOException {
- BufferedInputStream bufis=new BufferedInputStream(new FileInputStream("1.mp3"));
- BufferedOutputStream bufos=new BufferedOutputStream(new FileOutputStream("2.mp3"));
- int by=0;
- while((by=bufis.read())!=-1){
- bufos.write(by);
- }
- bufis.close();
- bufos.close();
- }
- }
复制代码
|
|