Uses of Class
java.nio.charset.Charset
- 
Packages that use Charset Package Description java.io Provides for system input and output through data streams, serialization and the file system.java.lang Provides classes that are fundamental to the design of the Java programming language.java.nio.charset Defines charsets, decoders, and encoders, for translating between bytes and Unicode characters.java.nio.charset.spi Service-provider classes for thejava.nio.charsetpackage.java.nio.file Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.java.util.zip Provides classes for reading and writing the standard ZIP and GZIP file formats.javafx.fxml Contains classes for loading an object hierarchy from markup.javax.tools Provides interfaces for tools which can be invoked from a program, for example, compilers.jdk.incubator.http High level HTTP and WebSocket APIjdk.nashorn.api.scripting This package provides thejavax.scriptintegration, which is the preferred way to use Nashorn.
- 
- 
Uses of Charset in java.ioConstructors in java.io with parameters of type Charset Constructor Description InputStreamReader(InputStream in, Charset cs)Creates an InputStreamReader that uses the given charset.OutputStreamWriter(OutputStream out, Charset cs)Creates an OutputStreamWriter that uses the given charset.
- 
Uses of Charset in java.langMethods in java.lang with parameters of type Charset Modifier and Type Method Description byte[]String. getBytes(Charset charset)Encodes thisStringinto a sequence of bytes using the given charset, storing the result into a new byte array.Constructors in java.lang with parameters of type Charset Constructor Description String(byte[] bytes, int offset, int length, Charset charset)Constructs a newStringby decoding the specified subarray of bytes using the specified charset.String(byte[] bytes, Charset charset)Constructs a newStringby decoding the specified array of bytes using the specified charset.
- 
Uses of Charset in java.nio.charsetFields in java.nio.charset declared as Charset Modifier and Type Field Description static CharsetStandardCharsets. ISO_8859_1ISO Latin Alphabet No. 1, a.k.a.static CharsetStandardCharsets. US_ASCIISeven-bit ASCII, a.k.a.static CharsetStandardCharsets. UTF_16Sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order markstatic CharsetStandardCharsets. UTF_16BESixteen-bit UCS Transformation Format, big-endian byte orderstatic CharsetStandardCharsets. UTF_16LESixteen-bit UCS Transformation Format, little-endian byte orderstatic CharsetStandardCharsets. UTF_8Eight-bit UCS Transformation FormatMethods in java.nio.charset that return Charset Modifier and Type Method Description CharsetCharsetDecoder. charset()Returns the charset that created this decoder.CharsetCharsetEncoder. charset()Returns the charset that created this encoder.static CharsetCharset. defaultCharset()Returns the default charset of this Java virtual machine.CharsetCharsetDecoder. detectedCharset()Retrieves the charset that was detected by this decoder (optional operation).static CharsetCharset. forName(String charsetName)Returns a charset object for the named charset.Methods in java.nio.charset that return types with arguments of type Charset Modifier and Type Method Description static SortedMap<String,Charset>Charset. availableCharsets()Constructs a sorted map from canonical charset names to charset objects.Methods in java.nio.charset with parameters of type Charset Modifier and Type Method Description intCharset. compareTo(Charset that)Compares this charset to another.abstract booleanCharset. contains(Charset cs)Tells whether or not this charset contains the given charset.Constructors in java.nio.charset with parameters of type Charset Constructor Description CharsetDecoder(Charset cs, float averageCharsPerByte, float maxCharsPerByte)Initializes a new decoder.CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar)Initializes a new encoder.CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement)Initializes a new encoder.
- 
Uses of Charset in java.nio.charset.spiMethods in java.nio.charset.spi that return Charset Modifier and Type Method Description abstract CharsetCharsetProvider. charsetForName(String charsetName)Retrieves a charset for the given charset name.Methods in java.nio.charset.spi that return types with arguments of type Charset Modifier and Type Method Description abstract Iterator<Charset>CharsetProvider. charsets()Creates an iterator that iterates over the charsets supported by this provider.
- 
Uses of Charset in java.nio.fileMethods in java.nio.file with parameters of type Charset Modifier and Type Method Description static Stream<String>Files. lines(Path path, Charset cs)Read all lines from a file as aStream.static BufferedReaderFiles. newBufferedReader(Path path, Charset cs)Opens a file for reading, returning aBufferedReaderthat may be used to read text from the file in an efficient manner.static BufferedWriterFiles. newBufferedWriter(Path path, Charset cs, OpenOption... options)Opens or creates a file for writing, returning aBufferedWriterthat may be used to write text to the file in an efficient manner.static List<String>Files. readAllLines(Path path, Charset cs)Read all lines from a file.static PathFiles. write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options)Write lines of text to a file.
- 
Uses of Charset in java.util.zipConstructors in java.util.zip with parameters of type Charset Constructor Description ZipFile(File file, int mode, Charset charset)Opens a newZipFileto read from the specifiedFileobject in the specified mode.ZipFile(File file, Charset charset)Opens a ZIP file for reading given the specified File object.ZipFile(String name, Charset charset)Opens a zip file for reading.ZipInputStream(InputStream in, Charset charset)Creates a new ZIP input stream.ZipOutputStream(OutputStream out, Charset charset)Creates a new ZIP output stream.
- 
Uses of Charset in javafx.fxmlMethods in javafx.fxml that return Charset Modifier and Type Method Description CharsetFXMLLoader. getCharset()Returns the character set used by this loader.Methods in javafx.fxml with parameters of type Charset Modifier and Type Method Description static <T> TFXMLLoader. load(URL location, ResourceBundle resources, BuilderFactory builderFactory, Callback<Class<?>,Object> controllerFactory, Charset charset)Loads an object hierarchy from a FXML document.voidFXMLLoader. setCharset(Charset charset)Sets the character set used by this loader.Constructors in javafx.fxml with parameters of type Charset Constructor Description FXMLLoader(URL location, ResourceBundle resources, BuilderFactory builderFactory, Callback<Class<?>,Object> controllerFactory, Charset charset)Creates a new FXMLLoader instance.FXMLLoader(URL location, ResourceBundle resources, BuilderFactory builderFactory, Callback<Class<?>,Object> controllerFactory, Charset charset, LinkedList<FXMLLoader> loaders)Creates a new FXMLLoader instance.FXMLLoader(Charset charset)Creates a new FXMLLoader instance.
- 
Uses of Charset in javax.toolsMethods in javax.tools with parameters of type Charset Modifier and Type Method Description StandardJavaFileManagerDocumentationTool. getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset)Returns a new instance of the standard file manager implementation for this tool.StandardJavaFileManagerJavaCompiler. getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset)Returns a new instance of the standard file manager implementation for this tool.
- 
Uses of Charset in jdk.incubator.httpMethods in jdk.incubator.http with parameters of type Charset Modifier and Type Method Description static HttpResponse.BodyHandler<String>HttpResponse.BodyHandler. asString(Charset charset)Returns aBodyHandler<String>that returns aBodyProcessor<String>obtained fromBodyProcessor.asString(Charset).static HttpResponse.BodyProcessor<String>HttpResponse.BodyProcessor. asString(Charset charset)Returns a body processor which stores the response body as aStringconverted using the givenCharset.static HttpRequest.BodyProcessorHttpRequest.BodyProcessor. fromString(String s, Charset charset)Returns a request body processor whose body is the givenString, converted using the given character set.
- 
Uses of Charset in jdk.nashorn.api.scriptingMethods in jdk.nashorn.api.scripting that return Charset Modifier and Type Method Description CharsetURLReader. getCharset()Charset used by this readerConstructors in jdk.nashorn.api.scripting with parameters of type Charset Constructor Description URLReader(URL url, Charset cs)Constructor
 
-