public boolean save(String filename){
  try {
    mOutput=new FileOutputStream(filename);
    byte[] output=new byte[BUFFER_SIZE];
    while (mInput.available() > 0) {
      int size=read(output);
      if (size > 0) {
        mOutput.write(output,0,size);
      }
 else       break;
    }
    mInput.close();
    mOutput.close();
    return true;
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  try {
    if (mInput != null)     mInput.close();
    if (mOutput != null)     mOutput.close();
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  return false;
}

public boolean save ( String filename ) { try { mOutput = new FileOutputStream ( filename ) ; byte [ ] output = new byte [ BUFFER_SIZE ] ; while ( mInput . available ( ) > 0 ) { int size = read ( output ) ; if ( size > 0 ) { mOutput . write ( output , 0 , size ) ; } else break ; } mInput . close ( ) ; mOutput . close ( ) ; return true ; } catch ( Exception e ) { e . printStackTrace ( ) ; } try { if ( mInput != null ) mInput . close ( ) ; if ( mOutput != null ) mOutput . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } return false ; }
saves an unencrypted copy of the music file as an mp3
