Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QTFile.toString() bug?



Perhaps I should have been more specific with my question.

Is it a bug with the return value from qtFile.toString(), or is it a bug with the internal representation of the URL in the QTFile object?

-John


John Wallace wrote:


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 email@hidden http://anode.com

_______________________________________________
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
References: 
 >QTFile.toString() bug? (From: John Wallace <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.