public class DefaultAttachedImageResourceMarshaller extends Object implements AttachedImageMarshaller
| Constructor and Description |
|---|
DefaultAttachedImageResourceMarshaller(AttachmentResourceIdentifierResolver attachmentResourceIdentifierResolver,
ThumbnailManager thumbnailManager,
StaxStreamMarshaller<Attachment> attachmentStaxStreamMarshaller,
EmbeddedImageTagWriter embeddedImageWriter,
UnidentifiedAttachmentMarshaller unidentifiedAttachmentPlaceholderWriter,
AttachmentResourceIdentifierOnlyUriResolver attachmentResourceIdentifierOnlyUriResolver,
ImageDetailsManager imageDetailsManager,
DarkFeaturesManager darkFeaturesManager,
AttachedImageRenderHelper attachedImageRenderHelper,
EmbeddedImageUtils embeddedImageUtils)
Creates an instance with the supplied parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMarshal(EmbeddedImage embeddedImage,
AttachmentResourceIdentifier attachmentResourceIdentifier,
ConversionContext conversionContext)
This method checks whether the marshaller implementation can handle the image passed to it.
|
Streamable |
marshal(XmlStreamWriterTemplate xmlStreamWriterTemplate,
EmbeddedImage embeddedImage,
AttachmentResourceIdentifier attachmentResourceIdentifier,
ConversionContext conversionContext)
Marshals an Attached image into an
|
public DefaultAttachedImageResourceMarshaller(AttachmentResourceIdentifierResolver attachmentResourceIdentifierResolver, ThumbnailManager thumbnailManager, StaxStreamMarshaller<Attachment> attachmentStaxStreamMarshaller, EmbeddedImageTagWriter embeddedImageWriter, UnidentifiedAttachmentMarshaller unidentifiedAttachmentPlaceholderWriter, AttachmentResourceIdentifierOnlyUriResolver attachmentResourceIdentifierOnlyUriResolver, ImageDetailsManager imageDetailsManager, DarkFeaturesManager darkFeaturesManager, AttachedImageRenderHelper attachedImageRenderHelper, EmbeddedImageUtils embeddedImageUtils)
public Streamable marshal(XmlStreamWriterTemplate xmlStreamWriterTemplate, EmbeddedImage embeddedImage, AttachmentResourceIdentifier attachmentResourceIdentifier, ConversionContext conversionContext) throws XhtmlException
AttachedImageMarshallermarshal in interface AttachedImageMarshallerxmlStreamWriterTemplate - The XML writer that writes the tagembeddedImage - The image to marshallattachmentResourceIdentifier - Identifier of the attachmentconversionContext - The output context to render forXhtmlExceptionpublic boolean canMarshal(EmbeddedImage embeddedImage, AttachmentResourceIdentifier attachmentResourceIdentifier, ConversionContext conversionContext)
AttachedImageMarshallercanMarshal in interface AttachedImageMarshallerembeddedImage - The image to marshallattachmentResourceIdentifier - Identifier of the attachmentconversionContext - The output context to render forCopyright © 2003–2016 Atlassian. All rights reserved.