de.enough.polish.video.util
Class VideoEncoding

java.lang.Object
  extended by de.enough.polish.video.util.VideoEncoding

public class VideoEncoding
extends Object

Parses an encoding string and stores its values

Author:
Andre

Constructor Summary
VideoEncoding(String encoding)
          Creates a new VideoEncoding instance
VideoEncoding(String encoding, String width, String height, String videoCodec, String audioCodec, String mode)
          Creates a new VideoEncoding instance
 
Method Summary
 String getAudioCodec()
          Returns the audio codec
 String getDescriptor()
          Returns the encoding string
 String getEncoding()
          Returns the mime type
 String getHeight()
          Returns the height
 String getMode()
          Returns the mode
 String getVideoCodec()
          Returns the video codec
 String getWidth()
          Returns the width
 String toResolutionString()
          Returns a string describing the solution of the encoding
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VideoEncoding

public VideoEncoding(String encoding)
              throws IllegalArgumentException
Creates a new VideoEncoding instance

Parameters:
encoding - the text of a single encoding
Throws:
IllegalArgumentException - if the encoding format is wrong

VideoEncoding

public VideoEncoding(String encoding,
                     String width,
                     String height,
                     String videoCodec,
                     String audioCodec,
                     String mode)
Creates a new VideoEncoding instance

Parameters:
encoding - the mime type
width - the width
height - the height
videoCodec - the video codec
audioCodec - the audio codec
mode - the mode
Method Detail

getEncoding

public String getEncoding()
Returns the mime type

Returns:
the mime type

getWidth

public String getWidth()
Returns the width

Returns:
the width

getHeight

public String getHeight()
Returns the height

Returns:
the height

getVideoCodec

public String getVideoCodec()
Returns the video codec

Returns:
the video codec

getAudioCodec

public String getAudioCodec()
Returns the audio codec

Returns:
the audio codec

getMode

public String getMode()
Returns the mode

Returns:
the mode

getDescriptor

public String getDescriptor()
Returns the encoding string

Returns:
the encoding string

toResolutionString

public String toResolutionString()
Returns a string describing the solution of the encoding

Returns:
a string describing the solution of the encoding

toString

public String toString()
Overrides:
toString in class Object