JSIP API v1.2
November 2006

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.

Author:
BEA Systems, NIST
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

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

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

JSIP API v1.2
November 2006

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing at http://archives.java.sun.com
Copyright - 2006 BEA Systems and Sun Microsystems