public class IntraDOCPDataFlavor extends DataFlavor
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.
Modifier and Type | Field and Description |
---|---|
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.
|
allHtmlFlavor, fragmentHtmlFlavor, imageFlavor, javaFileListFlavor, javaJVMLocalObjectMimeType, javaRemoteObjectMimeType, javaSerializedObjectMimeType, plainTextFlavor, selectionHtmlFlavor, stringFlavor
Modifier and Type | Method and Description |
---|---|
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 . |
clone, equals, equals, equals, getDefaultRepresentationClass, getDefaultRepresentationClassAsString, getHumanPresentableName, getMimeType, getParameter, getPrimaryType, getReaderForText, getRepresentationClass, getSubType, getTextPlainUnicodeFlavor, hashCode, isFlavorJavaFileListType, isFlavorRemoteObjectType, isFlavorSerializedObjectType, isFlavorTextType, isMimeTypeEqual, isMimeTypeEqual, isMimeTypeSerializedObject, isRepresentationClassByteBuffer, isRepresentationClassCharBuffer, isRepresentationClassInputStream, isRepresentationClassReader, isRepresentationClassRemote, isRepresentationClassSerializable, match, normalizeMimeType, normalizeMimeTypeParameter, readExternal, selectBestTextFlavor, setHumanPresentableName, toString, tryToLoadClass, writeExternal
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
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 checktrue
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 versionnull
if given flavor is no
IntraDOCPDataFlavor
.VERSION
Copyright © 2024 levigo holding gmbh. All rights reserved.