Java Code Examples for sun.awt.datatransfer.DataTransferer#getDefaultUnicodeEncoding()
The following examples show how to use
sun.awt.datatransfer.DataTransferer#getDefaultUnicodeEncoding() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DataFlavor.java From jdk1.8-source-analysis with Apache License 2.0 | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }
Example 2
Source File: DataFlavor.java From dragonwell8_jdk with GNU General Public License v2.0 | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }
Example 3
Source File: DataFlavor.java From TencentKona-8 with GNU General Public License v2.0 | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }
Example 4
Source File: DataFlavor.java From jdk8u60 with GNU General Public License v2.0 | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }
Example 5
Source File: DataFlavor.java From JDKSourceCode1.8 with MIT License | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }
Example 6
Source File: DataFlavor.java From openjdk-jdk8u with GNU General Public License v2.0 | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }
Example 7
Source File: DataFlavor.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }
Example 8
Source File: DataFlavor.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }
Example 9
Source File: DataFlavor.java From Java8CN with Apache License 2.0 | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }
Example 10
Source File: DataFlavor.java From hottub with GNU General Public License v2.0 | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }
Example 11
Source File: DataFlavor.java From openjdk-8-source with GNU General Public License v2.0 | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }
Example 12
Source File: DataFlavor.java From openjdk-8 with GNU General Public License v2.0 | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }
Example 13
Source File: DataFlavor.java From jdk8u_jdk with GNU General Public License v2.0 | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }
Example 14
Source File: DataFlavor.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }
Example 15
Source File: DataFlavor.java From jdk-1.7-annotated with Apache License 2.0 | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }
Example 16
Source File: DataFlavor.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 3 votes |
/** * Returns a <code>DataFlavor</code> representing plain text with Unicode * encoding, where: * <pre> * representationClass = java.io.InputStream * mimeType = "text/plain; * charset=<platform default Unicode encoding>" * </pre> * Sun's implementation for Microsoft Windows uses the encoding <code>utf-16le</code>. * Sun's implementation for Solaris and Linux uses the encoding * <code>iso-10646-ucs-2</code>. * * @return a <code>DataFlavor</code> representing plain text * with Unicode encoding * @since 1.3 */ public static final DataFlavor getTextPlainUnicodeFlavor() { String encoding = null; DataTransferer transferer = DataTransferer.getInstance(); if (transferer != null) { encoding = transferer.getDefaultUnicodeEncoding(); } return new DataFlavor( "text/plain;charset="+encoding +";class=java.io.InputStream", "Plain Text"); }