ariba.util.core
Class MIME

java.lang.Object
  extended by ariba.util.core.MIME

public final class MIME
extends Object

MIME. The Multipurpose Internet Mail Extensions standard. See http://info.internet.isi.edu/in-notes/rfc/files/rfc2045.txt and http://info.internet.isi.edu/in-notes/rfc/files/rfc2046.txt and http://www.isi.edu/in-notes/iana/assignments/character-sets


Field Summary
static String CharSetBig5
           
static String CharSetCp1251
           
static String CharSetCp1252
           
static String CharSetEUCCN
           
static String CharSetEUCJP
           
static String CharSetEUCKR
           
static String CharSetEUCTW
           
static String CharSetGB2312
           
static String CharSetISO2022CN
           
static String CharSetISO2022CN2
           
static String CharSetISO2022JP
           
static String CharSetISO2022JP2
           
static String CharSetISO2022KR
           
static String CharSetISO88591
           
static String CharSetISO88592
           
static String CharSetISO88593
           
static String CharSetISO88594
           
static String CharSetISO88595
           
static String CharSetISO88596
           
static String CharSetISO88597
           
static String CharSetISO88598
           
static String CharSetISO88599
           
static String CharSetKOI8R
           
static String CharSetKSC5601
           
static String CharSetShiftJIS
           
static String CharSetUSASCII
           
static String CharSetUTF
           
static String ContentTypeApplicationCSV
           
static String ContentTypeApplicationMSExcel
           
static String ContentTypeApplicationOctetStream
           
static String ContentTypeApplicationXAriba
           
static String ContentTypeApplicationXWWWFormURLEncoded
           
static String ContentTypeImageGIF
           
static String ContentTypeImageJPEG
           
static String ContentTypeMultipartFormData
           
static String ContentTypeMultipartMixed
           
static String ContentTypeMultipartRelated
           
static String ContentTypePDF
           
static String ContentTypeTextHTML
           
static String ContentTypeTextPlain
           
static String ContentTypeTextXML
           
static String ContentTypeZip
           
static String CRLF
           
static byte[] CRLFArray
           
static String Encoding7Bit
           
static String Encoding8Bit
           
static String EncodingBase64
           
static String EncodingBinary
           
static String EncodingISO2022JP
           
static String EncodingQuotedPrintable
           
static String HeaderContentDisposition
           
static String HeaderContentEncoding
           
static String HeaderContentId
           
static String HeaderContentLanguage
           
static String HeaderContentLength
           
static String HeaderContentTransferEncoding
           
static String HeaderContentType
           
static String HeaderMimeVersion
           
static String MIMEVersion
           
static String ParameterBoundary
           
static String ParameterCharSet
           
static String ParameterFilename
           
static String ParameterName
           
static String ParameterStart
           
 
Method Summary
static void crlf(OutputStream out)
          Convenience routine for printing lines of HTML
static void crlf(OutputStream out, String format)
          Convenience routine for printing CRLF terminated lines
static void crlf(OutputStream out, String format, Object o1)
          Convenience routine for printing CRLF terminated lines
static void crlf(OutputStream out, String format, Object o1, Object o2)
          Convenience routine for printing CRLF terminated lines
static void crlf(PrintWriter out)
          Convenience routine for printing lines of HTML
static void crlf(PrintWriter out, String format)
          Convenience routine for printing CRLF terminated lines
static void crlf(PrintWriter out, String format, Object o1)
          Convenience routine for printing CRLF terminated lines
static void crlf(PrintWriter out, String format, Object o1, Object o2)
          Convenience routine for printing CRLF terminated lines
static void crlf(PrintWriter out, String format, Object o1, Object o2, Object o3)
          Convenience routine for printing CRLF terminated lines
static void crlf(PrintWriter out, String format, Object o1, Object o2, Object o3, Object o4)
          Convenience routine for printing CRLF terminated lines
static String getCharset(Locale locale)
           
static String getMailEncoding(Locale locale)
           
static String getMetaCharset(Locale locale)
           
static void header(OutputStream out, String type, String body)
          Format a String header directly to out
static void header(PrintWriter out, String type, String body)
          Format a String header directly to out
static String header(String type, String body)
          Format a String header in memory
static String header(String type, String body, String param, String value)
          Format a String header in memory with a parameter value
static boolean isValidCharset(String charset)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRLF

public static final String CRLF
See Also:
Constant Field Values

CRLFArray

public static final byte[] CRLFArray

HeaderMimeVersion

public static final String HeaderMimeVersion
See Also:
Constant Field Values

HeaderContentType

public static final String HeaderContentType
See Also:
Constant Field Values

HeaderContentEncoding

public static final String HeaderContentEncoding
See Also:
Constant Field Values

HeaderContentId

public static final String HeaderContentId
See Also:
Constant Field Values

HeaderContentLanguage

public static final String HeaderContentLanguage
See Also:
Constant Field Values

HeaderContentLength

public static final String HeaderContentLength
See Also:
Constant Field Values

HeaderContentDisposition

public static final String HeaderContentDisposition
See Also:
Constant Field Values

HeaderContentTransferEncoding

public static final String HeaderContentTransferEncoding
See Also:
Constant Field Values

MIMEVersion

public static final String MIMEVersion
See Also:
Constant Field Values

EncodingQuotedPrintable

public static final String EncodingQuotedPrintable
See Also:
Constant Field Values

EncodingBase64

public static final String EncodingBase64
See Also:
Constant Field Values

Encoding7Bit

public static final String Encoding7Bit
See Also:
Constant Field Values

Encoding8Bit

public static final String Encoding8Bit
See Also:
Constant Field Values

EncodingBinary

public static final String EncodingBinary
See Also:
Constant Field Values

ContentTypeMultipartMixed

public static final String ContentTypeMultipartMixed
See Also:
Constant Field Values

ContentTypeMultipartFormData

public static final String ContentTypeMultipartFormData
See Also:
Constant Field Values

ContentTypeMultipartRelated

public static final String ContentTypeMultipartRelated
See Also:
Constant Field Values

ContentTypeTextPlain

public static final String ContentTypeTextPlain
See Also:
Constant Field Values

ContentTypeTextHTML

public static final String ContentTypeTextHTML
See Also:
Constant Field Values

ContentTypeTextXML

public static final String ContentTypeTextXML
See Also:
Constant Field Values

ContentTypeApplicationCSV

public static final String ContentTypeApplicationCSV
See Also:
Constant Field Values

ContentTypeApplicationOctetStream

public static final String ContentTypeApplicationOctetStream
See Also:
Constant Field Values

ContentTypeApplicationXAriba

public static final String ContentTypeApplicationXAriba
See Also:
Constant Field Values

ContentTypeApplicationXWWWFormURLEncoded

public static final String ContentTypeApplicationXWWWFormURLEncoded
See Also:
Constant Field Values

ContentTypeApplicationMSExcel

public static final String ContentTypeApplicationMSExcel
See Also:
Constant Field Values

ContentTypeImageGIF

public static final String ContentTypeImageGIF
See Also:
Constant Field Values

ContentTypeImageJPEG

public static final String ContentTypeImageJPEG
See Also:
Constant Field Values

ContentTypeZip

public static final String ContentTypeZip
See Also:
Constant Field Values

ContentTypePDF

public static final String ContentTypePDF
See Also:
Constant Field Values

ParameterBoundary

public static final String ParameterBoundary
See Also:
Constant Field Values

ParameterStart

public static final String ParameterStart
See Also:
Constant Field Values

ParameterCharSet

public static final String ParameterCharSet
See Also:
Constant Field Values

CharSetUSASCII

public static final String CharSetUSASCII
See Also:
Constant Field Values

CharSetUTF

public static final String CharSetUTF
See Also:
Constant Field Values

CharSetISO88591

public static final String CharSetISO88591
See Also:
Constant Field Values

CharSetISO88592

public static final String CharSetISO88592
See Also:
Constant Field Values

CharSetISO88593

public static final String CharSetISO88593
See Also:
Constant Field Values

CharSetISO88594

public static final String CharSetISO88594
See Also:
Constant Field Values

CharSetISO88595

public static final String CharSetISO88595
See Also:
Constant Field Values

CharSetISO88596

public static final String CharSetISO88596
See Also:
Constant Field Values

CharSetISO88597

public static final String CharSetISO88597
See Also:
Constant Field Values

CharSetISO88598

public static final String CharSetISO88598
See Also:
Constant Field Values

CharSetISO88599

public static final String CharSetISO88599
See Also:
Constant Field Values

CharSetISO2022KR

public static final String CharSetISO2022KR
See Also:
Constant Field Values

CharSetEUCKR

public static final String CharSetEUCKR
See Also:
Constant Field Values

CharSetISO2022JP

public static final String CharSetISO2022JP
See Also:
Constant Field Values

EncodingISO2022JP

public static final String EncodingISO2022JP
See Also:
Constant Field Values

CharSetISO2022JP2

public static final String CharSetISO2022JP2
See Also:
Constant Field Values

CharSetKOI8R

public static final String CharSetKOI8R
See Also:
Constant Field Values

CharSetShiftJIS

public static final String CharSetShiftJIS
See Also:
Constant Field Values

CharSetEUCJP

public static final String CharSetEUCJP
See Also:
Constant Field Values

CharSetGB2312

public static final String CharSetGB2312
See Also:
Constant Field Values

CharSetEUCCN

public static final String CharSetEUCCN
See Also:
Constant Field Values

CharSetBig5

public static final String CharSetBig5
See Also:
Constant Field Values

CharSetEUCTW

public static final String CharSetEUCTW
See Also:
Constant Field Values

CharSetKSC5601

public static final String CharSetKSC5601
See Also:
Constant Field Values

CharSetISO2022CN

public static final String CharSetISO2022CN
See Also:
Constant Field Values

CharSetISO2022CN2

public static final String CharSetISO2022CN2
See Also:
Constant Field Values

CharSetCp1251

public static final String CharSetCp1251
See Also:
Constant Field Values

CharSetCp1252

public static final String CharSetCp1252
See Also:
Constant Field Values

ParameterName

public static final String ParameterName
See Also:
Constant Field Values

ParameterFilename

public static final String ParameterFilename
See Also:
Constant Field Values
Method Detail

header

public static String header(String type,
                            String body)
Format a String header in memory


header

public static String header(String type,
                            String body,
                            String param,
                            String value)
Format a String header in memory with a parameter value


header

public static void header(PrintWriter out,
                          String type,
                          String body)
Format a String header directly to out


crlf

public static void crlf(PrintWriter out)
Convenience routine for printing lines of HTML


crlf

public static void crlf(PrintWriter out,
                        String format)
Convenience routine for printing CRLF terminated lines


crlf

public static void crlf(PrintWriter out,
                        String format,
                        Object o1)
Convenience routine for printing CRLF terminated lines


crlf

public static void crlf(PrintWriter out,
                        String format,
                        Object o1,
                        Object o2)
Convenience routine for printing CRLF terminated lines


crlf

public static void crlf(PrintWriter out,
                        String format,
                        Object o1,
                        Object o2,
                        Object o3)
Convenience routine for printing CRLF terminated lines


crlf

public static void crlf(PrintWriter out,
                        String format,
                        Object o1,
                        Object o2,
                        Object o3,
                        Object o4)
Convenience routine for printing CRLF terminated lines


header

public static void header(OutputStream out,
                          String type,
                          String body)
                   throws IOException
Format a String header directly to out

Throws:
IOException

crlf

public static void crlf(OutputStream out)
                 throws IOException
Convenience routine for printing lines of HTML

Throws:
IOException

crlf

public static void crlf(OutputStream out,
                        String format)
                 throws IOException
Convenience routine for printing CRLF terminated lines

Throws:
IOException

crlf

public static void crlf(OutputStream out,
                        String format,
                        Object o1)
                 throws IOException
Convenience routine for printing CRLF terminated lines

Throws:
IOException

crlf

public static void crlf(OutputStream out,
                        String format,
                        Object o1,
                        Object o2)
                 throws IOException
Convenience routine for printing CRLF terminated lines

Throws:
IOException

getCharset

public static String getCharset(Locale locale)

getMailEncoding

public static String getMailEncoding(Locale locale)

getMetaCharset

public static String getMetaCharset(Locale locale)

isValidCharset

public static boolean isValidCharset(String charset)


AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.