public String toString(){
  StringBuffer buf=new StringBuffer();
  if (type != null) {
    buf.append(type.toString() + " (." + type.getExtension()+ ") file");
  }
 else {
    buf.append("unknown file format");
  }
  if (byteLength != AudioSystem.NOT_SPECIFIED) {
    buf.append(", byte length: " + byteLength);
  }
  buf.append(", data format: " + format);
  if (frameLength != AudioSystem.NOT_SPECIFIED) {
    buf.append(", frame length: " + frameLength);
  }
  return new String(buf);
}

public String toString ( ) { StringBuffer buf = new StringBuffer ( ) ; if ( type != null ) { buf . append ( type . toString ( ) + " (." + type . getExtension ( ) + ") file" ) ; } else { buf . append ( "unknown file format" ) ; } if ( byteLength != AudioSystem . NOT_SPECIFIED ) { buf . append ( ", byte length: " + byteLength ) ; } buf . append ( ", data format: " + format ) ; if ( frameLength != AudioSystem . NOT_SPECIFIED ) { buf . append ( ", frame length: " + frameLength ) ; } return new String ( buf ) ; }
provides a string representation of the file format .
