Package org.apache.poi.hslf.record
Class ExMediaAtom
- java.lang.Object
-
- org.apache.poi.hslf.record.Record
-
- org.apache.poi.hslf.record.RecordAtom
-
- org.apache.poi.hslf.record.ExMediaAtom
-
public final class ExMediaAtom extends RecordAtom
An atom record that specifies information about external audio or video data.
-
-
Field Summary
Fields Modifier and Type Field Description static intfLoopA bit that specifies whether the audio or video data is repeated continuously during playback.static intfNarrationA bit that specifies whether the audio data is recorded narration for the slide show.static intfRewindA bit that specifies whether the audio or video data is rewound after playing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetFlag(int bit)intgetMask()A bit mask specifying options for displaying headers and footersintgetObjectId()A 4-byte unsigned integer that specifies an ID for an external object.longgetRecordType()Gets the record type.voidsetFlag(int bit, boolean value)voidsetMask(int mask)A bit mask specifying options for displaying videovoidsetObjectId(int id)A 4-byte unsigned integer that specifies an ID for an external object.java.lang.StringtoString()voidwriteOut(java.io.OutputStream out)Write the contents of the record back, so it can be written to disk-
Methods inherited from class org.apache.poi.hslf.record.RecordAtom
getChildRecords, isAnAtom
-
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
-
-
-
-
Field Detail
-
fLoop
public static final int fLoop
A bit that specifies whether the audio or video data is repeated continuously during playback.- See Also:
- Constant Field Values
-
fRewind
public static final int fRewind
A bit that specifies whether the audio or video data is rewound after playing.- See Also:
- Constant Field Values
-
fNarration
public static final int fNarration
A bit that specifies whether the audio data is recorded narration for the slide show. It MUST be FALSE if this ExMediaAtom record is contained by an ExVideoContainer record.- See Also:
- Constant Field Values
-
-
Method Detail
-
getRecordType
public long getRecordType()
Gets the record type.- Specified by:
getRecordTypein classRecord- Returns:
- the record type.
-
writeOut
public void writeOut(java.io.OutputStream out) throws java.io.IOExceptionWrite the contents of the record back, so it can be written to disk
-
getObjectId
public int getObjectId()
A 4-byte unsigned integer that specifies an ID for an external object.- Returns:
- A 4-byte unsigned integer that specifies an ID for an external object.
-
setObjectId
public void setObjectId(int id)
A 4-byte unsigned integer that specifies an ID for an external object.- Parameters:
id- A 4-byte unsigned integer that specifies an ID for an external object.
-
getMask
public int getMask()
A bit mask specifying options for displaying headers and footers- Returns:
- A bit mask specifying options for displaying headers and footers
-
setMask
public void setMask(int mask)
A bit mask specifying options for displaying video- Parameters:
mask- A bit mask specifying options for displaying video
-
getFlag
public boolean getFlag(int bit)
- Parameters:
bit- the bit to check- Returns:
- whether the specified flag is set
-
setFlag
public void setFlag(int bit, boolean value)- Parameters:
bit- the bit to setvalue- whether the specified bit is set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-