public class DocumentContent extends Object implements TypedContent
Constructor and Description |
---|
DocumentContent(String contentType,
String contentAsString) |
Modifier and Type | Method and Description |
---|---|
String |
getContentAsString() |
long |
getContentLength() |
String |
getContentType() |
DocumentContent |
withContent(String newContent) |
DocumentContent |
withContentType(String newContentType) |
public String getContentAsString()
getContentAsString
in interface TypedContent
public String getContentType()
getContentType
in interface TypedContent
public long getContentLength()
getContentLength
in interface TypedContent
public DocumentContent withContent(String newContent)
public DocumentContent withContentType(String newContentType)
Copyright © 2019. All Rights Reserved.