home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / sound / sampled / AudioFileFormat.class (.txt) next >
Encoding:
Java Class File  |  1979-12-31  |  1.5 KB  |  50 lines

  1. package javax.sound.sampled;
  2.  
  3. public class AudioFileFormat {
  4.    private Type type;
  5.    private int byteLength;
  6.    private AudioFormat format;
  7.    private int frameLength;
  8.  
  9.    protected AudioFileFormat(Type var1, int var2, AudioFormat var3, int var4) {
  10.       this.type = var1;
  11.       this.byteLength = var2;
  12.       this.format = var3;
  13.       this.frameLength = var4;
  14.    }
  15.  
  16.    public AudioFileFormat(Type var1, AudioFormat var2, int var3) {
  17.       this(var1, -1, var2, var3);
  18.    }
  19.  
  20.    public Type getType() {
  21.       return this.type;
  22.    }
  23.  
  24.    public int getByteLength() {
  25.       return this.byteLength;
  26.    }
  27.  
  28.    public AudioFormat getFormat() {
  29.       return this.format;
  30.    }
  31.  
  32.    public int getFrameLength() {
  33.       return this.frameLength;
  34.    }
  35.  
  36.    public String toString() {
  37.       StringBuffer var1 = new StringBuffer(this.type.toString() + " (." + this.type.getExtension() + ") file");
  38.       if (this.byteLength != -1) {
  39.          var1.append(", byte length: " + this.byteLength);
  40.       }
  41.  
  42.       var1.append(", data format: " + this.format);
  43.       if (this.frameLength != -1) {
  44.          var1.append(", frame length: " + this.frameLength);
  45.       }
  46.  
  47.       return new String(var1);
  48.    }
  49. }
  50.