|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AAFFile
Specifies a representation of an AAF file.
Note that in the current version of the MAJ API, no support is provided for AAF structured format or
KLV files. The MAJ API implementation of this method does nothing useful. This and related methods are
provided as part of a skeleton implementation of an interface similar to that provided in the existing
C-based reference implementation COM interface definitions (file "AAF.idl
").
AAFFactory.makeAAFFile()
Method Summary | |
---|---|
void |
close()
Dissociates this AAFFile from its storage. |
Dictionary |
getDictionary()
Returns the dictionary that contains all types of AAF definition objects for the file. |
Header |
getHeader()
Returns the header associated with this file. |
FileRev |
getRevision()
Returns the revision of the file. |
void |
open()
Associates this AAFFile with the storage to which it is to be associated. |
void |
save()
If this AAFFile is open, all unsaved changes made to the contents of this object are saved. |
void |
saveCopyAs(AAFFile destFile)
Copies the contents of this file to a given destination file. |
Method Detail |
---|
void open() throws AlreadyOpenException
Associates this AAFFile with the storage to which it is to be associated. It will then be possible to access objects within this file.
AlreadyOpenException
- This object has already been opened.void saveCopyAs(AAFFile destFile) throws NotOpenException, NotWriteableException
Copies the contents of this file to a given destination file. Requires that the destination file be open, writable or modifiable, and not yet contain any objects.
destFile
- File to receive a copy of the contents of this file.
NotOpenException
- The destination file is not open.
NotWriteableException
- The destination file cannot be written.
One reason may be that it already contains objects.Header getHeader() throws NotOpenException, NoHeaderException
Returns the header associated with this file. If this object has never been associated with a file, a new empty header will be created and returned. Note that the header is automatically created when the file object is created.
NotOpenException
- The object is not open.
NoHeaderException
- The object contains no header.FileRev getRevision() throws NotOpenException
Returns the revision of the file.
NotOpenException
- The object is not open.void save() throws NotOpenException, WrongOpenModeException, InsufficientSpaceException
If this AAFFile is open, all unsaved changes made to the contents of this object are saved.
NotOpenException
- The object is not open.
WrongOpenModeException
- This object is not open for writing
or modification.
InsufficientSpaceException
- There is insufficient space in
the storage to save the contents of this object.void close() throws NotOpenException
Dissociates this AAFFile from its storage. Any AAF objects which were contained within this object will then no longer be available to the client.
If the client is maintaining any references to any objects which are contained in this object, those objects will be marked as dissociated, and methods on them will fail.
Any unsaved changes will be written to the file before the close operation is complete.
NotOpenException
- This object is not already open.Dictionary getDictionary()
Returns the dictionary that contains all types of AAF definition objects for the file. Note that the dictionary is automatically created when the header is created.
Header.getDictionary()
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |