|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectviper.descriptors.CanonicalFileDescriptor
This class holds a FILE Information descriptor and can perform some standard
operations. Each
Constructor Summary | |
CanonicalFileDescriptor()
Constructs a new canonical file descriptor from the static prototype . |
|
CanonicalFileDescriptor(DescPrototype proto)
Constructs a new canonical file descriptor from the given prototype. |
Method Summary | |
void |
add(CanonicalFileDescriptor other)
Merges the given cfd with this cfd. |
void |
clear()
Clears the cfd value. |
java.lang.Object |
clone()
|
Descriptor |
getDescriptor()
Gets the instance of the file descriptor. |
int[] |
getDimensions()
Gets the x/y dimension. |
java.lang.String |
getMediaType()
Gets the media type of the video. |
int |
getNumFrames()
Gets the number of frames in the video. |
static DescPrototype |
getPrototype()
Gets a copy of the prototype for a canonical file descriptor. |
java.lang.String |
getSourceDirectory()
Gets the source directory attribute value. |
java.util.Set |
getSourceDirectorySet()
Gets the source directories. |
java.lang.String |
getSourceFiles()
Gets the list of source media files. |
DescPrototype |
getThisPrototype()
Gets a copy of this file descriptor, which may have more attributes than the static prototype file descriptor. |
java.lang.String |
set(Descriptor cfd)
Sets the canonical file descriptor to the given FILE Information descriptor |
java.lang.String |
set(Descriptor cfd,
boolean fixSourcefileThatStartAt0)
Sets the canonical file descriptor to the given FILE Information descriptor |
void |
setDimensions(int width,
int height)
Sets the dimensions |
void |
setID(int id)
Sets the identification number of the underlying descriptor. |
void |
setMediaType(java.lang.String mediaType)
Sets the media type of the video. |
void |
setNumFrames(int numberOfFramesInClip)
Sets the number of frames in the video. |
void |
setSourceDirectory(java.lang.String sourceDir)
Sets the source directory attribute value. |
void |
setSourceDirectorySet(java.util.Set dirs)
Sets the source directories. |
void |
setSourceFiles(java.lang.String sourceFiles)
Sets the list of source media files. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CanonicalFileDescriptor()
static prototype
.
public CanonicalFileDescriptor(DescPrototype proto)
proto
- the prototype to use. This will be modified
to contain all of the prototypical file descriptor
attributes.Method Detail |
public static final DescPrototype getPrototype()
public DescPrototype getThisPrototype()
public java.lang.Object clone()
public Descriptor getDescriptor()
public void add(CanonicalFileDescriptor other)
other
- the cfd to add to this cfdpublic void setID(int id)
id
- the new ID numberpublic int getNumFrames()
public void setNumFrames(int numberOfFramesInClip)
numberOfFramesInClip
- the new number of framespublic java.lang.String getMediaType()
public void setMediaType(java.lang.String mediaType)
mediaType
- the new media typepublic java.lang.String getSourceFiles()
public void setSourceFiles(java.lang.String sourceFiles)
sourceFiles
- the new list of source media filespublic java.util.Set getSourceDirectorySet()
public void setSourceDirectorySet(java.util.Set dirs)
dirs
- the directories containing
the files named in the sourcefiles attributepublic java.lang.String getSourceDirectory()
public void setSourceDirectory(java.lang.String sourceDir)
sourceDir
- the new source directorypublic int[] getDimensions()
public void setDimensions(int width, int height)
width
- the new widthheight
- the new heightpublic void clear()
public java.lang.String set(Descriptor cfd)
cfd
- the new descriptor
public java.lang.String set(Descriptor cfd, boolean fixSourcefileThatStartAt0)
cfd
- the new descriptorfixSourcefileThatStartAt0
- When true, if the SOUCEFILES attribute starts at frame 0, add
one to all numbers in the string.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |