All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iceberg.mediamanager.PlainAudio

java.lang.Object
   |
   +----iceberg.mediamanager.ContentObject
           |
           +----iceberg.mediamanager.PlainAudio

public class PlainAudio
extends ContentObject
implements Serializable

Variable Index

 o bytesPerMilli
 o theAudio

Constructor Index

 o PlainAudio()
 o PlainAudio(byte[], ContentID)

Method Index

 o convertAudioIndexToTime(int)
 o convertTimeToAudioIndex(int)
 o endTime()
Get the time index of the ending time, which is expressed in the time index of the original audio, even if this audio segment has portions of the original audio removed.
 o getAudio()
 o getAudio(int, int)
 o getAudioByTime(int, int)
 o getData()
 o getMimeType()
 o getTranscriptContentID()
Return what the content ID would be for this audio.
 o length()
Get the length of this audio segement.
 o PrettyPrint(PrintStream)
 o readFromConfigFile(InputStream)
 o setData(byte[])

Variables

 o theAudio
 protected byte theAudio[]
 o bytesPerMilli
 protected int bytesPerMilli

Constructors

 o PlainAudio
 public PlainAudio()
 o PlainAudio
 public PlainAudio(byte audio[],
                   ContentID id)

Methods

 o getData
 public byte[] getData()
Overrides:
getData in class ContentObject
 o getAudio
 public byte[] getAudio()
 o getAudio
 public byte[] getAudio(int start,
                        int end)
 o getAudioByTime
 public byte[] getAudioByTime(int startTime,
                              int endTime)
 o length
 public int length()
Get the length of this audio segement.

 o endTime
 public int endTime()
Get the time index of the ending time, which is expressed in the time index of the original audio, even if this audio segment has portions of the original audio removed.

 o convertAudioIndexToTime
 public int convertAudioIndexToTime(int audioByteNumber)
 o convertTimeToAudioIndex
 public int convertTimeToAudioIndex(int timeInMilli)
 o getMimeType
 public String getMimeType()
Overrides:
getMimeType in class ContentObject
 o setData
 public void setData(byte audio[])
Overrides:
setData in class ContentObject
 o readFromConfigFile
 public void readFromConfigFile(InputStream in) throws IOException
Overrides:
readFromConfigFile in class ContentObject
 o PrettyPrint
 public void PrettyPrint(PrintStream out)
Overrides:
PrettyPrint in class ContentObject
 o getTranscriptContentID
 public ContentID getTranscriptContentID()
Return what the content ID would be for this audio. This does not guarantee that the transcript has been generated, but if it has been, this will be its ID.


All Packages  Class Hierarchy  This Package  Previous  Next  Index