|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--quicktime.app.QTFactory
The QTFactory class provides factory methods for creating classes that are used to present media that QuickTime can import. It also provides some utility methods for finding directories and files in the local file system.
An example usage of some of the factory methods:
File mediaFile = QTFactory.findAbsolutePath ("media/myMovie.mov");
QTDrawable d = QTFactory.makeDrawable(new QTFile(mediaFile));
myQTCanvas.setClient (d);
...
// from an URL
QTDrawable d2 = QTFactory.makeDrawable ("http://web.mywebsite.com/movies/myMovie.mov");
myOtherQTCanvas.setClient (d2);
| Method Summary | |
static void |
addDirectory(java.io.File dir)
Deprecated. since QTJava 6.1 |
static java.io.File |
findAbsolutePath(java.lang.String fileName)
Deprecated. since QTJava 6.1 |
static java.io.File |
findInSystemPaths(java.lang.String fileName)
Deprecated. since QTJava 6.1 |
static QTDrawable |
makeDrawable(java.io.InputStream is,
int hintType,
java.lang.String hintString)
Deprecated. since QTJava 6.1 |
static QTDrawable |
makeDrawable(java.io.InputStream is,
int hintType,
java.lang.String hintString,
QTDrawableMaker maker)
Deprecated. since QTJava 6.1 |
static QTDrawable |
makeDrawable(QTFile qtFile)
Deprecated. since QTJava 6.1 |
static QTDrawable |
makeDrawable(QTFile qtFile,
QTDrawableMaker maker)
Deprecated. since QTJava 6.1 |
static QTDrawable |
makeDrawable(java.lang.String url)
Deprecated. since QTJava 6.1 |
static QTDrawable |
makeDrawable(java.lang.String url,
QTDrawableMaker maker)
Deprecated. since QTJava 6.1 |
static void |
removeDirectory(java.io.File dir)
Deprecated. since QTJava 6.1 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.io.File findInSystemPaths(java.lang.String fileName)
throws java.io.IOException
java.lang.SecurityException - will be returned if the Applet is not allowed access to the class path
system property. Typically this is the case - you should use the codeBase or documentBase paths of the
applet to position and locate files at run time.
java.io.IOException - the file cannot be found in any of the class path locations.
public static void addDirectory(java.io.File dir)
throws java.io.IOException
dir - a directory
java.io.IOException
public static void removeDirectory(java.io.File dir)
throws java.io.IOException
dir - a directory
java.io.IOException
public static java.io.File findAbsolutePath(java.lang.String fileName)
throws java.io.IOException
fileName - the file to search for.
java.lang.SecurityException - will be returned if the Applet is not allowed access to the class path
system property. Typically this is the case - you should use the codeBase or documentBase paths of the
applet to position and locate files at run time.
java.io.IOException - the file cannot be found in any of the class path locations.
public static QTDrawable makeDrawable(QTFile qtFile)
throws java.io.IOException,
QTException
StdQTException - If the file is of a format that is not understood by QuickTime
the function will throw a StdQTException with error code invalidMovie.
java.io.IOException - is thrown if the file would violate security settings of an applet
QTExceptionGraphicsImporterDrawer,
QTPlayer,
QTDrawableMaker
public static QTDrawable makeDrawable(QTFile qtFile,
QTDrawableMaker maker)
throws java.io.IOException,
QTException
maker - specifies which type of QTDrawable object is returned when the factory imports a
Graphics or Movie based media.
StdQTException - If the file is of a format that is not understood by QuickTime
the function will throw a StdQTException with error code invalidMovie.
java.io.IOException - if the file is not found
QTExceptionGraphicsImporterDrawer,
QTPlayer,
QTDrawableMaker
public static QTDrawable makeDrawable(java.io.InputStream is,
int hintType,
java.lang.String hintString)
throws java.io.IOException,
QTException
is - the input stream from which the bytes will be readhintString - contains the hint information
StdQTException - If the data is of a format that is not understood by QuickTime
the function will throw a StdQTException with error code invalidMovie.
java.io.IOException - is thrown if the input stream is unable to aquire all the data
QTExceptionGraphicsImporterDrawer,
QTPlayer,
QTDrawableMaker
public static QTDrawable makeDrawable(java.io.InputStream is,
int hintType,
java.lang.String hintString,
QTDrawableMaker maker)
throws java.io.IOException,
QTException
hintString - contains the hint informationmaker - specifies which type of QTDrawable object is returned when the factory imports a
Graphics or Movie based media.
StdQTException - If the data is of a format that is not understood by QuickTime
the function will throw a StdQTException with error code invalidMovie.
java.io.IOException - is thrown if the input stream is unable to aquire all the data
QTExceptionGraphicsImporterDrawer,
QTPlayer,
QTDrawableMaker
public static QTDrawable makeDrawable(java.lang.String url)
throws QTException
url - specifies the URL to the QT source media
StdQTException - If the file is of a format that is not understood by QuickTime
the function will throw a StdQTException with error code invalidMovie.
java.lang.SecurityException - is thrown if the file would violate security settings of an applet
QTException
public static QTDrawable makeDrawable(java.lang.String url,
QTDrawableMaker maker)
throws QTException
url - is the fully qualified url to the QuickTime media.maker - specifies which type of QTDrawable object is returned when the factory imports a
Graphics or Movie based media.
StdQTException - If the file is of a format that is not understood by QuickTime
the function will throw a StdQTException with error code invalidMovie.
java.lang.SecurityException - is thrown if the file would violate security settings of an applet
QTExceptionGraphicsImporterDrawer,
QTPlayer,
QTDrawableMaker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||