public class ImageAttributeWriter extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
ignoreWidthHeight |
Constructor and Description |
---|
ImageAttributeWriter(XMLStreamWriter writer) |
Modifier and Type | Method and Description |
---|---|
protected void |
writeAttribute(String name,
String value)
Write the supplied attribute name and value, unless the value is blank in which case nothing will be written.
|
void |
writeAttribute(String prefix,
String namespaceURI,
String localName,
String value)
Writes the attribute with the given prefix and namespace, if the prefix or namespace is blank
writeAttribute(String, String) will be called. |
void |
writeAttributes(EmbeddedImage embeddedImage) |
void |
writeAttributes(String prefix,
String namespace,
EmbeddedImage embeddedImage) |
public ImageAttributeWriter(XMLStreamWriter writer)
public void writeAttributes(EmbeddedImage embeddedImage) throws XMLStreamException
XMLStreamException
public void writeAttributes(String prefix, String namespace, EmbeddedImage embeddedImage) throws XMLStreamException
XMLStreamException
protected void writeAttribute(String name, String value) throws XMLStreamException
name
- value
- XMLStreamException
public void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException
writeAttribute(String, String)
will be called. If a value is not provided the attribute
will not be written.prefix
- The attribute namespace prefix.namespaceURI
- The URI of the namespace.localName
- Name of the attributevalue
- Value of the attribute, if not supplied will not be written.XMLStreamException
Copyright © 2003–2021 Atlassian. All rights reserved.