Package com.pnfsoftware.jeb.util.base
Class TypedContent
java.lang.Object
com.pnfsoftware.jeb.util.base.TypedContent
A buffer of data with a MIME type and contents properties.
-
Constructor Summary
ConstructorsConstructorDescriptionTypedContent
(byte[] bytes, String mimeType) TypedContent
(byte[] bytes, String mimeType, String charsetName) TypedContent
(byte[] bytes, String mimeType, String charsetName, ITypedContentProperties properties) TypedContent
(String text, String mimeType) TypedContent
(String text, String mimeType, ITypedContentProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionstatic TypedContent
bytes
(byte[] bytes) byte[]
getBytes()
getText()
static TypedContent
static TypedContent
boolean
isBinary()
boolean
isText()
static TypedContent
-
Constructor Details
-
TypedContent
-
TypedContent
-
TypedContent
-
TypedContent
-
TypedContent
public TypedContent(byte[] bytes, String mimeType, String charsetName, ITypedContentProperties properties)
-
-
Method Details
-
html
-
html
-
text
-
bytes
-
getText
-
getBytes
public byte[] getBytes() -
getMimeType
-
getCharsetName
-
getProperties
-
isText
public boolean isText() -
isBinary
public boolean isBinary()
-