public class

TypedContent

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.base.TypedContent

Class Overview

A buffer of data with a MIME type and contents properties.

Summary

Public Constructors
TypedContent(String text, String mimeType)
TypedContent(String text, String mimeType, ITypedContentProperties properties)
TypedContent(byte[] bytes, String mimeType)
TypedContent(byte[] bytes, String mimeType, String charsetName)
TypedContent(byte[] bytes, String mimeType, String charsetName, ITypedContentProperties properties)
Public Methods
static TypedContent bytes(byte[] bytes)
byte[] getBytes()
String getCharsetName()
String getMimeType()
ITypedContentProperties getProperties()
String getText()
static TypedContent html(String text)
static TypedContent html(String text, String anchor)
boolean isBinary()
boolean isText()
static TypedContent text(String text)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TypedContent (String text, String mimeType)

public TypedContent (String text, String mimeType, ITypedContentProperties properties)

public TypedContent (byte[] bytes, String mimeType)

public TypedContent (byte[] bytes, String mimeType, String charsetName)

public TypedContent (byte[] bytes, String mimeType, String charsetName, ITypedContentProperties properties)

Public Methods

public static TypedContent bytes (byte[] bytes)

public byte[] getBytes ()

public String getCharsetName ()

public String getMimeType ()

public ITypedContentProperties getProperties ()

public String getText ()

public static TypedContent html (String text)

public static TypedContent html (String text, String anchor)

public boolean isBinary ()

public boolean isText ()

public static TypedContent text (String text)