|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jsdp.Information
public class Information
An Information represents an i=<field value> field contained in a SDP message. This field is information about the session and may be omitted, although this is discouraged for session announcements, and user interfaces for composing sessions should require text to be entered.
Field Summary |
---|
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 |
Information()
Creates a new Information. |
|
Information(String value)
Creates a new Information. |
Method Summary | |
---|---|
Object |
clone()
Returns a clone of this field. |
char |
getType()
Returns the type character for the field. |
String |
getValue()
Returns the information about the session. |
static Information |
parse(String field)
Parse an input string and constructs the equivalent information field. |
void |
setValue(String value)
Sets the session information. |
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 |
Constructor Detail |
---|
protected Information()
public Information(String value) throws SDPException
value
- the information about the session
SDPException
- if the characters of the information are not allowedMethod Detail |
---|
public static Information parse(String field) throws SDPParseException
field
- the string to parse
SDPParseException
- if an error occurs while parsingpublic Object clone()
clone
in interface Field
clone
in class Object
public char getType()
getType
in interface Field
public String getValue()
public void setValue(String value) throws SDPException
value
- the information about the session
SDPException
- if the characters of the information are not allowedpublic String toString()
toString
in interface Field
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |