URLTransfer provides a platform specific mechanism
for converting text in URL format represented as a java String
to a platform specific representation of the data and vice versa. The string
must contain a fully specified url.
An example of a java String containing a URL is shown below:
String url = "http://www.eclipse.org";
Transfer
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static URLTransfer | |
| private static final String | |
| private static final int | |
| private static final String | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| public static URLTransfer | Returns: the singleton instance of the URLTransfer classReturns the singleton instance of the URLTransfer class. |
| protected int[] | getTypeIds()
Implements abstract org. |
| protected String[] | getTypeNames()
Implements abstract org. |
| public void | javaToNative(Object
a java object, TransferData String containing a URLan empty transferData)TransferData object that will
be filled in on return with the platform specific format of the dataOverrides org. javaToNative converts a URL
represented by a java String to a platform specific representation.
|
| public Object | Returns: a javaString containing a URL if the conversion was successful;
otherwise nullthe platform specific representation of the data to be converted transferData)Overrides org. nativeToJava converts a platform
specific representation of a URL to a java String.
|
| protected boolean | validate(Object
a java representation of the data to be converted object)Overrides org. |
| _instance | back to summary |
|---|---|
| pack-priv static URLTransfer _instance | |
| TEXT_UNICODE | back to summary |
|---|---|
| private static final String TEXT_UNICODE | |
| TEXT_UNICODE_ID | back to summary |
|---|---|
| private static final int TEXT_UNICODE_ID | |
| TEXT_XMOZURL | back to summary |
|---|---|
| private static final String TEXT_XMOZURL | |
| TEXT_XMOZURL_ID | back to summary |
|---|---|
| private static final int TEXT_XMOZURL_ID | |
| URLTransfer | back to summary |
|---|---|
| private URLTransfer() | |
| checkURL | back to summary |
|---|---|
| pack-priv boolean checkURL(Object object) | |
| getInstance | back to summary |
|---|---|
| public static URLTransfer getInstance() Returns the singleton instance of the URLTransfer class.
| |
| getTypeIds | back to summary |
|---|---|
| protected int[] getTypeIds() Implements abstract org. Doc from org. Returns the platform specific ids of the data types that can be converted using this transfer agent.
| |
| getTypeNames | back to summary |
|---|---|
| protected String[] getTypeNames() Implements abstract org. Doc from org. Returns the platform specific names of the data types that can be converted using this transfer agent. | |
| javaToNative | back to summary |
|---|---|
| public void javaToNative(Object object, TransferData transferData) Overrides org. This implementation of
| |
| nativeToJava | back to summary |
|---|---|
| public Object nativeToJava(TransferData transferData) Overrides org. This implementation of
| |
| validate | back to summary |
|---|---|
| protected boolean validate(Object object) Overrides org. Doc from org. Test that the object is of the correct format for this Transfer class. | |