home *** CD-ROM | disk | FTP | other *** search
- package javax.sound.sampled;
-
- public class AudioFileFormat {
- private Type type;
- private int byteLength;
- private AudioFormat format;
- private int frameLength;
-
- protected AudioFileFormat(Type var1, int var2, AudioFormat var3, int var4) {
- this.type = var1;
- this.byteLength = var2;
- this.format = var3;
- this.frameLength = var4;
- }
-
- public AudioFileFormat(Type var1, AudioFormat var2, int var3) {
- this(var1, -1, var2, var3);
- }
-
- public Type getType() {
- return this.type;
- }
-
- public int getByteLength() {
- return this.byteLength;
- }
-
- public AudioFormat getFormat() {
- return this.format;
- }
-
- public int getFrameLength() {
- return this.frameLength;
- }
-
- public String toString() {
- StringBuffer var1 = new StringBuffer(this.type.toString() + " (." + this.type.getExtension() + ") file");
- if (this.byteLength != -1) {
- var1.append(", byte length: " + this.byteLength);
- }
-
- var1.append(", data format: " + this.format);
- if (this.frameLength != -1) {
- var1.append(", frame length: " + this.frameLength);
- }
-
- return new String(var1);
- }
- }
-