|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectviper.descriptors.ImportExport
Methods for importing and exporting to the old .gtf file format.
| Constructor Summary | |
ImportExport()
|
|
| Method Summary | |
static org.w3c.dom.Element |
convertToModern(java.io.InputStream inFile)
|
static boolean |
exportSourcefileAsGTF(Sourcefile sf)
Asks the user where, then saves the file as a gtf file. |
static boolean |
exportSourcefileAsGTF(Sourcefile sf,
java.io.File target)
Saves the file as a gtf file. |
static boolean |
importConfig(ViperData v)
Prompts the user to open a file from which to import viper configuration information. |
static boolean |
importConfig(ViperData target,
Configs cfgs)
Copies the configuration from the source metadata set into the target metadata set. |
static boolean |
importConfig(ViperData v,
java.io.File gtc)
Imports the configuration from the given file. |
static boolean |
importDataFromGTF(Sourcefile sf)
TODO: currently, does not convert the config. |
static boolean |
importDataFromGTF(Sourcefile asFile,
java.io.File gtf)
Imports the given gtf file as the named sourcefile. |
static boolean |
importDataFromGTF(Sourcefile target,
Sourcefile source)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImportExport()
| Method Detail |
public static boolean importConfig(ViperData v,
java.io.File gtc)
throws java.io.IOException
v - the data to import the config intogtc - the location of the configuration
java.io.IOException - if the file has an error
or is missing
public static boolean importConfig(ViperData target,
Configs cfgs)
target - the metadata to modify
public static boolean importConfig(ViperData v)
throws java.io.IOException
v - the data to import into
v has changed
java.io.IOException
public static org.w3c.dom.Element convertToModern(java.io.InputStream inFile)
throws java.io.IOException
java.io.IOException
public static boolean importDataFromGTF(Sourcefile asFile,
java.io.File gtf)
asFile - gtf -
true if the import was successful
public static boolean importDataFromGTF(Sourcefile target,
Sourcefile source)
target - source - public static boolean importDataFromGTF(Sourcefile sf)
sf -
public static boolean exportSourcefileAsGTF(Sourcefile sf,
java.io.File target)
throws java.io.IOException,
BadDataException
sf - the viper-api representation of a single file's
video metadatatarget - where to save the file
java.io.IOException
BadDataException
public static boolean exportSourcefileAsGTF(Sourcefile sf)
throws java.io.IOException,
BadDataException
sf - the file to serialize.
java.io.IOException - if there is an error in writing
BadDataException - if there was a viper api/
viper-pe data mismatch
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||