|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.datatransfer.DataFlavor com.levigo.jadice.document.flavor.IntraDOCPDataFlavor
public class IntraDOCPDataFlavor
A DataFlavor
used for moving or copying Page
s across jadice application running
in different JVMs.
This flavor keeps track from which JVM it was created so that the receiving side can decide if it will support this flavor or not. Due to some JVM internal issues this must information is coded into the MIME type so that this flavor has no fixed MIME type.
Field Summary | |
---|---|
static String |
INTRA_DOCP_MIME_TYPE_PREFIX
The prefix of the MIME type. |
protected static UUID |
JVM_ID
|
protected static char |
SEPARATOR
|
static String |
VERSION
The current version of the protocol for intra DOCP transfer. |
Fields inherited from class java.awt.datatransfer.DataFlavor |
---|
imageFlavor, javaFileListFlavor, javaJVMLocalObjectMimeType, javaRemoteObjectMimeType, javaSerializedObjectMimeType, plainTextFlavor, stringFlavor |
Method Summary | |
---|---|
static IntraDOCPDataFlavor |
get()
|
static String |
getVersion(DataFlavor flavor)
Returns the version number of the given flavor. |
static boolean |
isFromSameJVM(DataFlavor flavor)
Checks if the given flavor is an IntraDOCPDataFlavor from the same JVM. |
static boolean |
isIntraDOCPDataFlavor(DataFlavor flavor)
Checks if the given flavor is an IntraDOCPDataFlavor . |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String INTRA_DOCP_MIME_TYPE_PREFIX
public static final String VERSION
protected static final char SEPARATOR
protected static final UUID JVM_ID
Method Detail |
---|
public static IntraDOCPDataFlavor get()
IntraDOCPDataFlavor
for the current JVM instance.public static boolean isIntraDOCPDataFlavor(DataFlavor flavor)
IntraDOCPDataFlavor
.
flavor
- the DataFlavor
to check.
true
iff the given flavor is an IntraDOCPDataFlavor
.public static boolean isFromSameJVM(DataFlavor flavor)
IntraDOCPDataFlavor
from the same JVM.
flavor
- the DataFlavor
to check
true
iff the given flaovr is an IntraDOCPDataFlavor
from the same JVM.public static String getVersion(DataFlavor flavor)
flavor
- the DataFlavor
from which to retrieve the version
null
if given flavor is no
IntraDOCPDataFlavor
.VERSION
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |