Uses of Class
java.nio.charset.Charset
| Package | Description |
|---|---|
| com.squareup.okhttp | |
| com.squareup.okhttp.internal | |
| java.io | |
| java.lang | |
| java.nio.charset | |
| java.nio.charset.spi | |
| libcore.icu | |
| libcore.io | |
| libcore.net | |
| org.robovm.rt.bro.ptr |
-
Uses of Charset in com.squareup.okhttp
Methods in com.squareup.okhttp that return Charset Modifier and Type Method Description CharsetMediaType. charset()Returns the charset of this media type, or null if this media type doesn't specify a charset.CharsetMediaType. charset(Charset defaultValue)Returns the charset of this media type, ordefaultValueif this media type doesn't specify a charset.Methods in com.squareup.okhttp with parameters of type Charset Modifier and Type Method Description CharsetMediaType. charset(Charset defaultValue)Returns the charset of this media type, ordefaultValueif this media type doesn't specify a charset. -
Uses of Charset in com.squareup.okhttp.internal
Fields in com.squareup.okhttp.internal declared as Charset Modifier and Type Field Description static CharsetUtil. ISO_8859_1A cheap and type-safe constant for the ISO-8859-1 Charset.static CharsetUtil. US_ASCIIA cheap and type-safe constant for the US-ASCII Charset.static CharsetUtil. UTF_8A cheap and type-safe constant for the UTF-8 Charset.Constructors in com.squareup.okhttp.internal with parameters of type Charset Constructor Description StrictLineReader(InputStream in, int capacity, Charset charset)Constructs a newLineReaderwith the specified capacity and charset.StrictLineReader(InputStream in, Charset charset)Constructs a newLineReaderwith the specified charset and the default capacity. -
Uses of Charset in java.io
Constructors in java.io with parameters of type Charset Constructor Description InputStreamReader(InputStream in, Charset charset)Constructs a new InputStreamReader on the InputStreaminand Charsetcharset.OutputStreamWriter(OutputStream out, Charset cs)Constructs a new OutputStreamWriter usingoutas the target stream to write converted characters to andcsas the character encoding. -
Uses of Charset in java.lang
Methods in java.lang with parameters of type Charset Modifier and Type Method Description byte[]String. getBytes(Charset charset)Returns a new byte array containing the characters of this string encoded using the given charset.Constructors in java.lang with parameters of type Charset Constructor Description String(byte[] data, int offset, int byteCount, Charset charset)Converts the byte array to a string using the given charset.String(byte[] data, Charset charset)Converts the byte array to a String using the given charset. -
Uses of Charset in java.nio.charset
Fields in java.nio.charset declared as Charset Modifier and Type Field Description static CharsetStandardCharsets. ISO_8859_1The ISO-8859-1 charset.static CharsetStandardCharsets. US_ASCIIThe US-ASCII charset.static CharsetStandardCharsets. UTF_16The UTF-16 charset.static CharsetStandardCharsets. UTF_16BEThe UTF-16BE (big-endian) charset.static CharsetStandardCharsets. UTF_16LEThe UTF-16LE (little-endian) charset.static CharsetStandardCharsets. UTF_8The UTF-8 charset.Methods in java.nio.charset that return Charset Modifier and Type Method Description CharsetCharsetDecoder. charset()Returns theCharsetwhich this decoder uses.CharsetCharsetEncoder. charset()Returns theCharsetwhich this encoder uses.static CharsetCharset. defaultCharset()Returns the system's default charset.CharsetCharsetDecoder. detectedCharset()Gets the charset detected by this decoder; this method is optional.static CharsetCharset. forName(String charsetName)Returns aCharsetinstance for the named charset.static CharsetCharset. forNameUEE(String charsetName)Equivalent toforNamebut only throwsUnsupportedEncodingException, which is all pre-nio code claims to throw.Methods in java.nio.charset that return types with arguments of type Charset Modifier and Type Method Description static SortedMap<String,Charset>Charset. availableCharsets()Returns an immutable case-insensitive map from canonical names toCharsetinstances.Methods in java.nio.charset with parameters of type Charset Modifier and Type Method Description intCharset. compareTo(Charset charset)Compares this charset with the given charset.abstract booleanCharset. contains(Charset charset)Determines whether this charset is a superset of the given charset.Constructors in java.nio.charset with parameters of type Charset Constructor Description CharsetDecoder(Charset charset, float averageCharsPerByte, float maxCharsPerByte)Constructs a newCharsetDecoderusing the givenCharset, average number and maximum number of characters created by this decoder for one input byte, and the default replacement string "�".CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar)Constructs a newCharsetEncoderusing the given parameters and the replacement byte array{ (byte) '?' }.CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement)Constructs a newCharsetEncoderusing the givenCharset, replacement byte array, average number and maximum number of bytes created by this encoder for one input character. -
Uses of Charset in java.nio.charset.spi
Methods in java.nio.charset.spi that return Charset Modifier and Type Method Description abstract CharsetCharsetProvider. charsetForName(String charsetName)Returns the named charset.Methods in java.nio.charset.spi that return types with arguments of type Charset Modifier and Type Method Description abstract Iterator<Charset>CharsetProvider. charsets()Returns an iterator over all the available charsets. -
Uses of Charset in libcore.icu
Methods in libcore.icu that return Charset Modifier and Type Method Description static CharsetNativeConverter. charsetForName(String charsetName) -
Uses of Charset in libcore.io
Constructors in libcore.io with parameters of type Charset Constructor Description StrictLineReader(InputStream in, int capacity, Charset charset)Constructs a newLineReaderwith the specified capacity and charset.StrictLineReader(InputStream in, Charset charset)Constructs a newLineReaderwith the specified charset and the default capacity. -
Uses of Charset in libcore.net
-
Uses of Charset in org.robovm.rt.bro.ptr
Methods in org.robovm.rt.bro.ptr with parameters of type Charset Modifier and Type Method Description static BytePtrBytePtr. toBytePtrZ(String s, Charset charset)static BytePtrBytePtr. toBytePtrZ(String s, Charset charset, boolean useNativeHeap)StringBytePtr. toStringZ(Charset charset)