|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jsdp.Version
public class Version
A Version represents the v=<field value> field contained in a SDP message. The version field gives the version of the Session Description Protocol: there is no minor version number and the only allowed version value is 0.
| Field Summary | |
|---|---|
static Version |
DEFAULT_VERSION
The default SDP version |
protected int |
version
The SDP protocol version |
| Fields inherited from interface net.sourceforge.jsdp.Field |
|---|
ATTRIBUTE_FIELD, BANDWITH_FIELD, CONNECTION_FIELD, EMAIL_FIELD, END_OF_FIELD, INFORMATION_FIELD, KEY_FIELD, MEDIA_FIELD, ORIGIN_FIELD, PHONE_FIELD, REPEAT_TIME_FIELD, SESSION_NAME_FIELD, TIME_FIELD, TIMEZONE_FIELD, URI_FIELD, VERSION_FIELD |
| Constructor Summary | |
|---|---|
protected |
Version()
Creates a new Version. |
| Method Summary | |
|---|---|
Object |
clone()
Returns a clone of this field. |
char |
getType()
Returns the type character for the field. |
int |
getValue()
Returns the SDP protocol version. |
static Version |
parse(String field)
Parse an input string and constructs the equivalent session name field. |
protected void |
setValue(int version)
Sets the SDP protocol version |
String |
toString()
Returns a string representation of the field. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Version DEFAULT_VERSION
protected int version
| Constructor Detail |
|---|
protected Version()
| Method Detail |
|---|
public static Version parse(String field)
throws SDPParseException
field - the string to parse
SDPParseException - if an error occurs while parsingpublic Object clone()
clone in interface Fieldclone in class Objectpublic char getType()
getType in interface Fieldpublic int getValue()
protected void setValue(int version)
throws SDPException
version - the SDP protocol version
SDPException - if the version specified is not valid. At this time
the only version allowed is 0public String toString()
toString in interface FieldtoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||