JAIN SIP API
v1.1 - 23rd June 2003

javax.sip.header
Interface Encoding

All Known Subinterfaces:
AcceptEncodingHeader, ContentEncodingHeader

public interface Encoding

This interface represents encoding methods for any header that contains an encoding value.

Since:
1.1
See Also:
AcceptEncodingHeader, ContentEncodingHeader

Method Summary
 java.lang.String getEncoding()
          Gets the encoding of an EncodingHeader.
 void setEncoding(java.lang.String encoding)
          Sets the encoding of an EncodingHeader.
 

Method Detail

setEncoding

public void setEncoding(java.lang.String encoding)
                 throws java.text.ParseException
Sets the encoding of an EncodingHeader.

Parameters:
encoding - - the new string value defining the encoding.
Throws:
java.text.ParseException - which signals that an error has been reached unexpectedly while parsing the encoding value.

getEncoding

public java.lang.String getEncoding()
Gets the encoding of an EncodingHeader. Returns null if no encoding is defined in an EncodingHeader.

Returns:
the string value identifing the encoding

JAIN SIP API
v1.1 - 23rd June 2003

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing to the
JAIN-SIP-Interest list at http://archives.java.sun.com
Copyright - 2003 Sun Microsystems