import java.io.*;

class WaveData {
  public WaveData(String fn) throws Exception {
    InputStream is = new FileInputStream(new File(fn));
    byte[] buf = new byte[10];
    is.read(buf, 0, 4);
    if(! "RIFF".equals(new String(buf, 0, 4)))
      throw new Exception("Illegal File Format! ");
    /*
      } catch (Exception e){
      e.printStackTrace();
      } finally{
      is.close();
      }
    */
  }

  public void write(String fn){
    
  }
  

}

public class Wave {
  public static void main(String[] Args) throws Exception{
    if(Args.length != 2)
      throw new Exception("Usage : java Wave <Input wave file> <Output wave file>");
    WaveData wd = new WaveData(Args[0]);
    //    wd.process();
    wd.write(Args[1]);
  }
}
