ezvcard.parameter
Class Encoding

java.lang.Object
  extended by ezvcard.parameter.VCardParameter
      extended by ezvcard.parameter.VersionedVCardParameter
          extended by ezvcard.parameter.Encoding

public class Encoding
extends VersionedVCardParameter

Represents the "ENCODING" parameter.

Supported versions: 2.1, 3.0

Author:
George El-Haddad Mar 10, 2010, Michael Angstadt

Field Summary
static Encoding _7BIT
          Supported versions: 2.1
static Encoding _8BIT
          Supported versions: 2.1
static Encoding B
          Supported versions: 3.0
static Encoding BASE64
          Supported versions: 2.1
static Encoding QUOTED_PRINTABLE
          Supported versions: 2.1
 
Fields inherited from class ezvcard.parameter.VersionedVCardParameter
supportedVersions
 
Fields inherited from class ezvcard.parameter.VCardParameter
value
 
Method Summary
static Collection<Encoding> all()
          Gets all of the parameter values that are defined as static constants in this class.
static Encoding find(String value)
          Searches for a parameter value that is defined as a static constant in this class.
static Encoding get(String value)
          Searches for a parameter value and creates one if it cannot be found.
 
Methods inherited from class ezvcard.parameter.VersionedVCardParameter
isSupported
 
Methods inherited from class ezvcard.parameter.VCardParameter
equals, getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

QUOTED_PRINTABLE

public static final Encoding QUOTED_PRINTABLE
Supported versions: 2.1


BASE64

public static final Encoding BASE64
Supported versions: 2.1


_8BIT

public static final Encoding _8BIT
Supported versions: 2.1


_7BIT

public static final Encoding _7BIT
Supported versions: 2.1


B

public static final Encoding B
Supported versions: 3.0

Method Detail

find

public static Encoding find(String value)
Searches for a parameter value that is defined as a static constant in this class.

Parameters:
value - the parameter value
Returns:
the object or null if not found

get

public static Encoding get(String value)
Searches for a parameter value and creates one if it cannot be found. All objects are guaranteed to be unique, so they can be compared with == equality.

Parameters:
value - the parameter value
Returns:
the object

all

public static Collection<Encoding> all()
Gets all of the parameter values that are defined as static constants in this class.

Returns:
the parameter values


Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.