Constructor and Description |
---|
SvgImage(byte[] data)
Creates new SvgImage object.
|
SvgImage(byte[] data,
IExternalResourceResolver externalResResolver,
java.lang.String baseUri)
Creates new SvgImage object.
|
SvgImage(java.io.InputStream stream)
Creates new SvgImage object.
|
SvgImage(java.io.InputStream stream,
IExternalResourceResolver externalResResolver,
java.lang.String baseUri)
Creates new SvgImage object.
|
SvgImage(java.lang.String svgContent)
Creates new SvgImage object.
|
SvgImage(java.lang.String svgContent,
IExternalResourceResolver externalResResolver,
java.lang.String baseUri)
Creates new SvgImage object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseUri()
Returns base URI of the specified Svg.
|
IExternalResourceResolver |
getExternalResourceResolver()
Return callback interface used to resolve external resources during Svg documents import.
|
java.lang.String |
getSvgContent()
Returns SVG content.
|
byte[] |
getSvgData()
Returns SVG data.
|
public SvgImage(byte[] data)
Creates new SvgImage object.
data
- Svg data.public SvgImage(java.lang.String svgContent)
Creates new SvgImage object.
svgContent
- Svg content.public SvgImage(java.io.InputStream stream)
Creates new SvgImage object.
stream
- Svg stream.public SvgImage(byte[] data, IExternalResourceResolver externalResResolver, java.lang.String baseUri)
Creates new SvgImage object.
data
- Svg data.externalResResolver
- A callback object used to fetch external objects. If this parameter is null all external objects will be ignored.baseUri
- Base URI of the specified Svg. Used to resolve relative links.public SvgImage(java.lang.String svgContent, IExternalResourceResolver externalResResolver, java.lang.String baseUri)
Creates new SvgImage object.
svgContent
- Svg content.externalResResolver
- A callback object used to fetch external objects. If this parameter is null all external objects will be ignored.baseUri
- Base URI of the specified Svg. Used to resolve relative links.public SvgImage(java.io.InputStream stream, IExternalResourceResolver externalResResolver, java.lang.String baseUri)
Creates new SvgImage object.
stream
- Svg stream.externalResResolver
- A callback object used to fetch external objects. If this parameter is null all external objects will be ignored.baseUri
- Base URI of the specified Svg. Used to resolve relative links.public final byte[] getSvgData()
Returns SVG data.
Read-only byte[]
.
getSvgData
in interface ISvgImage
public final IExternalResourceResolver getExternalResourceResolver()
Return callback interface used to resolve external resources during Svg documents import.
Read-only IExternalResourceResolver
.
getExternalResourceResolver
in interface ISvgImage
public final java.lang.String getBaseUri()
Returns base URI of the specified Svg. Used to resolve relative links.
Read-only String
.
getBaseUri
in interface ISvgImage
public final java.lang.String getSvgContent()
Returns SVG content.
Read-only String
.
getSvgContent
in interface ISvgImage