QTFile.toString() bug?
- Subject: QTFile.toString() bug?
- From: John Wallace <email@hidden>
- Date: Wed, 13 Jul 2005 15:22:04 -0500
- Delivered-to: email@hidden
- Delivered-to: email@hidden
- User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)
I run the program below, and this is the output:
QT v7.0
QTJ v6.1
url: http://www.google.com/intl/en/images/logo.gif
qtFile url: http:/www.google.com/intl/en/images/logo.gif
Note the difference between the two urls: one has http://, and the
other has only http:/
Is this a bug with qtFile.toString() ??
Thanks.
-John
// ============== code ===================
import quicktime.*;
import quicktime.io.*;
import quicktime.util.*;
import java.net.*;
public class QTFileExample {
public QTFileExample () {
try {
QTSession.open();
System.out.println("QT v" + QTSession.getMajorVersion() + "." + QTSession.getMinorVersion());
System.out.println("QTJ v" + QTBuild.getVersion() + "." + QTBuild.getSubVersion());
URL url = new URL ("http://www.google.com/intl/en/images/logo.gif");
QTFile qtFile = new QTFile(url.toString());
System.out.println ("url: " + url.toString());
System.out.println ("qtFile url: " + qtFile.toString());
QTSession.close();
}
catch (Exception e) {
System.err.println("exception: "+e.toString());
}
}
public static void main (String arg[]) {
new QTFileExample ();
}
}
// =======================================
--
John Wallace | Java / Web Developer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.