|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rtf.context.image.FormatBase
public class FormatBase
| Constructor Summary | |
|---|---|
FormatBase()
|
|
| Method Summary | |
|---|---|
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. |
java.lang.String |
getRtfTag()
Get rtf tag. |
int |
getType()
Get image type. |
static boolean |
isFormat(byte[] data)
Determines whether the image is in the according format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormatBase()
| Method Detail |
|---|
public static boolean isFormat(byte[] data)
data - Image
public FormatBase convert(FormatBase format,
byte[] data)
data - Imagetype - Format typepublic static FormatBase determineFormat(byte[] data)
data - Image
public int getType()
public java.lang.String getRtfTag()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||