com.sapportals.wcm.protocol.webdav

Class QPCodec

java.lang.Object
  extended by com.sapportals.wcm.protocol.webdav.QPCodec

public final class QPCodec
extends Object

Manages Quoted Printable Encoding/Decoding according to RFC 2045 Ch. 6.7

Copyright (c) SAP AG 2001-2004


Constructor Summary
QPCodec()
           
 
Method Summary
static String Decode(String value, String encoding)
          Converts a string in quoted printable format back to its original form.
static String Encode(String value, String encoding)
           
static String getEncoding(byte b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QPCodec

public QPCodec()
Method Detail

Encode

public static String Encode(String value,
                            String encoding)
                     throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

Decode

public static String Decode(String value,
                            String encoding)
                     throws UnsupportedEncodingException,
                            IOException
Converts a string in quoted printable format back to its original form. quoted bytes are in the given character encoding.

Parameters:
value - to decode
encoding - to use for conversion bytes to characters
Returns:
decoded value
Throws:
UnsupportedEncodingException - when character encoding is not supported
IOException - when value is in invalid form

getEncoding

public static final String getEncoding(byte b)
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice