FileTransfer

The class <code>FileTransfer</code> provides a platform specific mechanism for converting a list of files represented as a java <code>String[]</code> to a platform specific representation of the data and vice versa. Each <code>String</code> in the array contains the absolute path for a single file or directory.

<p>An example of a java <code>String[]</code> containing a list of files is shown below:</p>

<code><pre> File file1 = new File("C:\temp\file1"); File file2 = new File("C:\temp\file2"); String[] fileData = new String[2]; fileData[0] = file1.getAbsolutePath(); fileData[1] = file2.getAbsolutePath(); </code></pre>

@see Transfer

Members

Functions

javaToNative
void javaToNative(Object object, TransferData transferData)

This implementation of <code>javaToNative</code> converts a list of file names represented by a java <code>String[]</code> to a platform specific representation. Each <code>String</code> in the array contains the absolute path for a single file or directory.

nativeToJava
Object nativeToJava(TransferData transferData)

This implementation of <code>nativeToJava</code> converts a platform specific representation of a list of file names to a java <code>String[]</code>. Each String in the array contains the absolute path for a single file or directory.

Static functions

getInstance
FileTransfer getInstance()

Returns the singleton instance of the FileTransfer class.

Inherited Members

From ByteArrayTransfer

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>.

Meta