RTFTransfer

The class <code>RTFTransfer</code> provides a platform specific mechanism for converting text in RTF format represented as a java <code>String</code> to a platform specific representation of the data and vice versa.

<p>An example of a java <code>String</code> containing RTF text is shown below:</p>

<code><pre> String rtfData = "{\\rtf1{\\colortbl;\\red255\\green0\\blue0;}\\uc1\\b\\i Hello World}"; </code></pre>

@see Transfer

Members

Functions

checkRTF
bool checkRTF(Object object)
Undocumented in source. Be warned that the author may not have intended to support it.
getTypeIds
int[] getTypeIds()
Undocumented in source. Be warned that the author may not have intended to support it.
getTypeNames
String[] getTypeNames()
Undocumented in source. Be warned that the author may not have intended to support it.
javaToNative
void javaToNative(Object object, TransferData transferData)

This implementation of <code>javaToNative</code> converts RTF-formatted text represented by a java <code>String</code> to a platform specific representation.

nativeToJava
Object nativeToJava(TransferData transferData)

This implementation of <code>nativeToJava</code> converts a platform specific representation of RTF text to a java <code>String</code>.

validate
bool validate(Object object)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

getInstance
RTFTransfer getInstance()

Returns the singleton instance of the RTFTransfer class.

Inherited Members

From ByteArrayTransfer

getSupportedTypes
TransferData[] getSupportedTypes()
Undocumented in source. Be warned that the author may not have intended to support it.
isSupportedType
bool isSupportedType(TransferData transferData)
Undocumented in source. Be warned that the author may not have intended to support it.
javaToNative
void javaToNative(Object object, TransferData transferData)

This implementation of <code>javaToNative</code> converts a java <code>byte[]</code> to a platform specific representation.

nativeToJava
Object nativeToJava(TransferData transferData)

This implementation of <code>nativeToJava</code> converts a platform specific representation of a byte array to a java <code>byte[]</code>.

checkByteArray
bool checkByteArray(Object object)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta