Development Class Java

import java.io.File;
import java.net.URL;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
    AudioSystem stream = AudioSystem.getAudioInputStream(new URL(
        "http://hostname/audiofile"));
    AudioFormat format = stream.getFormat();
    if (format.getEncoding() == AudioFormat.Encoding.ULAW) {
    } else if (format.getEncoding() == AudioFormat.Encoding.ULAW) {
    }
  }
}