| Modifier and Type | Class and Description |
|---|---|
| private static class | DataFlavorUtils.
InputStream implementation backed by a ByteBuffer. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Object | |
| pack-priv static Object | |
| pack-priv static Map | |
| pack-priv static DataFlavor | |
| pack-priv static DataFlavor[] | |
| pack-priv static DataFormat | |
| pack-priv static String | |
| pack-priv static String | |
| pack-priv static Map | readAllData(final Transferable t, final Map<String, DataFlavor> fxMimeType2DataFlavor, final boolean fetchData)
Returns a Map populated with keys corresponding to all the MIME types available in the provided Transferable object. |
| private static Object |
| DataFlavorUtils | back to summary |
|---|---|
| pack-priv DataFlavorUtils() | |
| adjustFxData | back to summary |
|---|---|
| pack-priv static Object adjustFxData(final DataFlavor flavor, final Object fxData) throws UnsupportedEncodingException | |
| adjustSwingData | back to summary |
|---|---|
| pack-priv static Object adjustSwingData(final DataFlavor flavor, final String mimeType, final Object swingData) | |
| adjustSwingDataFlavors | back to summary |
|---|---|
| pack-priv static Map | |
| getDataFlavor | back to summary |
|---|---|
| pack-priv static DataFlavor getDataFlavor(final DataFormat format) | |
| getDataFlavors | back to summary |
|---|---|
| pack-priv static DataFlavor[] getDataFlavors(String[] mimeTypes) | |
| getDataFormat | back to summary |
|---|---|
| pack-priv static DataFormat getDataFormat(final DataFlavor flavor) | |
| getFxMimeType | back to summary |
|---|---|
| pack-priv static String getFxMimeType(final DataFlavor flavor) | |
| getMimeType | back to summary |
|---|---|
| pack-priv static String getMimeType(final DataFormat format) | |
| readAllData | back to summary |
|---|---|
| pack-priv static Map Returns a Map populated with keys corresponding to all the MIME types available in the provided Transferable object. If fetchData is true, then the data is fetched as well, otherwise all the values are set to null. | |
| readData | back to summary |
|---|---|
| private static Object readData(final Transferable t, final DataFlavor flavor) | |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Overrides java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. |
| public int | read()
Implements abstract java. Reads the next byte of data from the input stream. |
| public int | read(byte[]
the buffer into which the data is read. bytes, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. Reads up to |
| bb | back to summary |
|---|---|
| private final ByteBuffer bb | |
| ByteBufferInputStream | back to summary |
|---|---|
| private ByteBufferInputStream(ByteBuffer bb) | |
| available | back to summary |
|---|---|
| public int available() Overrides java. Doc from java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. The read might be on the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes. Note that while some implementations of A subclass's implementation of this method may choose to throw an
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(byte[] bytes, int off, int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |