net.sf.ext.mediamanager
Class FilePropertiesMPEG

java.lang.Object
  extended bynet.sf.ext.mediamanager.FileProperties
      extended bynet.sf.ext.mediamanager.FilePropertiesMPEG

public class FilePropertiesMPEG
extends net.sf.ext.mediamanager.FileProperties


Constructor Summary
FilePropertiesMPEG()
           
 
Method Summary
 int getAudioBitRate()
          Returns the audio bit rate.
 int getAudioChannels()
          Returns the audio channels.
 java.lang.String getAudioCodec()
          Returns the audio codec.
 int getAudioSampleRate()
          Returns the audio rate.
 int getDuration()
          Returns the duration.
 int getVideoBitRate()
          Returns the video bit rate.
 java.lang.String getVideoCodec()
          Returns the video codec.
 int getVideoFps()
           
 int getVideoHeight()
           
 java.lang.String getVideoResolution()
          Returns the resolution.
 int getVideoWidth()
           
 void process(java.io.DataInputStream dataStream)
          Processes a file from the given DataInputStream.
 int readUnsignedByte(java.io.DataInputStream dataStream)
          Reads an unsigned byte and returns its int representation.
 int[] readUnsignedBytes(java.io.DataInputStream dataStream, int n)
          Reads n unsigned bytes and returns it in an int[n].
 int readUnsignedInt16(java.io.DataInputStream dataStream)
          Reads an unsigned 16-bit integer.
 int readUnsignedInt32(java.io.DataInputStream dataStream)
          Reads an unsigned 32-bit integer.
 void setAudioBitRate(int audioBitRate)
          Sets the audio bit rate.
 void setAudioChannels(int audioChannels)
          Sets the audio channels.
 void setAudioCodec(java.lang.String audioCodec)
          Sets the audio codec (auds handler).
 void setAudioRate(int audioSampleRate)
          Sets the audio rate.
 void setDuration(int duration)
          Sets the duration.
 void setVideoBitRate(int videoBitRate)
          Sets the video bit rate.
 void setVideoCodec(java.lang.String videoCodec)
          Sets the video codec (vids handler).
 void setVideoFps(int fps)
          Sets the video rate.
 void setVideoHeight(int height)
           
 void setVideoResolution(java.lang.String videoResolution)
          Sets the resolution.
 void setVideoWidth(int width)
           
 void skipBytes(java.io.DataInputStream dataStream, int n)
          Discards n bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePropertiesMPEG

public FilePropertiesMPEG()
Method Detail

process

public void process(java.io.DataInputStream dataStream)
             throws java.lang.Exception
Processes a file from the given DataInputStream.

Throws:
java.lang.Exception

getVideoResolution

public java.lang.String getVideoResolution()
Returns the resolution.


getVideoCodec

public java.lang.String getVideoCodec()
Returns the video codec.


getVideoFps

public int getVideoFps()

getVideoBitRate

public int getVideoBitRate()
Returns the video bit rate.


getDuration

public int getDuration()
Returns the duration.


getAudioCodec

public java.lang.String getAudioCodec()
Returns the audio codec.


getAudioSampleRate

public int getAudioSampleRate()
Returns the audio rate.


getAudioBitRate

public int getAudioBitRate()
Returns the audio bit rate.


getAudioChannels

public int getAudioChannels()
Returns the audio channels.


setVideoWidth

public void setVideoWidth(int width)

setVideoHeight

public void setVideoHeight(int height)

getVideoWidth

public int getVideoWidth()

getVideoHeight

public int getVideoHeight()

setVideoResolution

public void setVideoResolution(java.lang.String videoResolution)
Sets the resolution.


setVideoCodec

public void setVideoCodec(java.lang.String videoCodec)
Sets the video codec (vids handler).


setVideoFps

public void setVideoFps(int fps)
Sets the video rate.


setVideoBitRate

public void setVideoBitRate(int videoBitRate)
Sets the video bit rate.


setDuration

public void setDuration(int duration)
Sets the duration.


setAudioCodec

public void setAudioCodec(java.lang.String audioCodec)
Sets the audio codec (auds handler).


setAudioRate

public void setAudioRate(int audioSampleRate)
Sets the audio rate.


setAudioBitRate

public void setAudioBitRate(int audioBitRate)
Sets the audio bit rate.


setAudioChannels

public void setAudioChannels(int audioChannels)
Sets the audio channels.


readUnsignedByte

public int readUnsignedByte(java.io.DataInputStream dataStream)
                     throws java.lang.Exception
Reads an unsigned byte and returns its int representation.

Throws:
java.lang.Exception

readUnsignedBytes

public int[] readUnsignedBytes(java.io.DataInputStream dataStream,
                               int n)
                        throws java.lang.Exception
Reads n unsigned bytes and returns it in an int[n].

Throws:
java.lang.Exception

readUnsignedInt16

public int readUnsignedInt16(java.io.DataInputStream dataStream)
                      throws java.lang.Exception
Reads an unsigned 16-bit integer.

Throws:
java.lang.Exception

readUnsignedInt32

public int readUnsignedInt32(java.io.DataInputStream dataStream)
                      throws java.lang.Exception
Reads an unsigned 32-bit integer.

Throws:
java.lang.Exception

skipBytes

public void skipBytes(java.io.DataInputStream dataStream,
                      int n)
               throws java.lang.Exception
Discards n bytes.

Throws:
java.lang.Exception