Package org.apache.axiom.mime

# Class ContentTransferEncoding

java.lang.Object
org.apache.axiom.mime.ContentTransferEncoding

public abstract class ContentTransferEncoding extends Object
Represents a MIME content transfer encoding.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final ContentTransferEncoding`
  `BASE64`
  The `base64` content transfer encoding.
  `static final ContentTransferEncoding`
  `BINARY`
  The `binary` content transfer encoding.
  `static final ContentTransferEncoding`
  `EIGHT_BIT`
  The `8bit` content transfer encoding.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ContentTransferEncoding(String name)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract OutputStream`
  `encode(OutputStream out)`
  Wrap the given output stream to apply the content transfer encoding.
  `final String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### EIGHT_BIT

    public static final ContentTransferEncoding EIGHT_BIT
    The `8bit` content transfer encoding.

  - ### BINARY

    public static final ContentTransferEncoding BINARY
    The `binary` content transfer encoding.

  - ### BASE64

    public static final ContentTransferEncoding BASE64
    The `base64` content transfer encoding.

- ## Constructor Details

  - ### ContentTransferEncoding

    public ContentTransferEncoding(String name)

- ## Method Details

  - ### toString

    public final String toString()
    Overrides:
      `toString` in class `Object`

  - ### encode

    public abstract OutputStream encode(OutputStream out)
    Wrap the given output stream to apply the content transfer encoding.
    Parameters:
      `out` - the output stream to wrap
    Returns:
      the wrapped output stream