public class FormatBase extends Object
| Constructor and Description |
|---|
FormatBase() |
| Modifier and Type | Method and Description |
|---|---|
FormatBase |
convert(FormatBase format,
byte[] data)
Convert image data if necessary - for example when format is not supported by rtf.
|
static FormatBase |
determineFormat(byte[] data)
Determine image file format.
|
String |
getRtfTag()
Get rtf tag.
|
int |
getType()
Get image type.
|
static boolean |
isFormat(byte[] data)
Determines whether the image is in the according format.
|
public static boolean isFormat(byte[] data)
data - Imagepublic FormatBase convert(FormatBase format, byte[] data)
data - Imagetype - Format typepublic static FormatBase determineFormat(byte[] data)
data - Imagepublic int getType()
public String getRtfTag()
Copyright © 2020 Mice S.r.l. All rights reserved.