public class AAFFactory extends Object implements AAFConstants
Read and write AAF structured storage binary files to and from MAJ preface instances. Wherever possible, the methods of this class deal with understanding or constructing any necessary metadata dictionaries or dictionaries.
Note that MAJ uses an extended version of the Apache POIFS library. MAJ can read big and little endian byte order files but only writes back in big endian.
AAFSignatureSSBin4K, AAFSignatureSSBin4KBytes, AAFSignatureSSBinary, AAFSignatureSSBinaryBytes, ByteOrderPropertyID, classNameAliases, directoryNameAliases, IdentificationGenerationIDProperty, LocalIdentificationProperty, MAP_SS_CLASS_NAMES, MAP_SS_DIRECTORY_NAMES, MAP_SS_PROPERTY_NAMES, MAP_SS_TYPE_NAMES, META_DICTIONARY_DIRNAME, MetaDefinitionIDProperty, ParametersID, PREFACE_DIRNAME, PROPERTIES_STREAMNAME, propertyNameAliases, REFERENCED_PROPERTIES_STREAMNAME, rootEntryClassID, RootMetaDictionaryProperty, RootPrefaceProperty, SF_DATA, SF_DATA_STREAM, SF_STRONG_OBJECT_REFERENCE, SF_STRONG_OBJECT_REFERENCE_SET, SF_STRONG_OBJECT_REFERENCE_VECTOR, SF_WEAK_OBJECT_REFERENCE, SF_WEAK_OBJECT_REFERENCE_SET, SF_WEAK_OBJECT_REFERENCE_VECTOR, STREAM_CHUNK_SIZE, typeNameAliasesAAF_METADICT_NAMESPACE, AAF_METADICT_PREFIX, AAF_XML_NAMESPACE, AAF_XML_PREFIX, ApplicationPluginObjectID, ApplicationPluginsID, MAX_NUM_RGBA_COMPS, MemberOfID, ObjectClassID, ParentClassID, PropertiesID, XMLClassIDAsAttributeName| Constructor and Description |
|---|
AAFFactory() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
static Preface |
readPreface(String filename)
Read a complete preface from an AAF file, including all the content storage objects.
|
static void |
writePreface(Preface preface,
String outputFilename)
Write an AAF file with the given filename that is constructed from the given preface.
|
public static final Preface readPreface(String filename) throws IOException
Read a complete preface from an AAF file, including all the content storage objects. This method does not read any essence data apart from embedded streams.
filename - AAF file to read a preface object from.IOException - An exception was thrown when trying to read the given AAF file.writePreface(Preface, String)public static final void writePreface(Preface preface, String outputFilename) throws IOException
Write an AAF file with the given filename that is constructed from the given preface.
Note that this version of MAJ only supports writing metadata-only files.
preface - Preface to use to construct an AAF file from.outputFilename - File path specification for the file to write the preface to.IOException - An error occurred when writing the AAF file.readPreface(String)public static final void main(String[] args)
(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.