软件包 | 描述 |
---|---|
java.io |
通过数据流、序列化和文件系统提供系统的输入和输出。
|
java.lang |
提供对java编程语言的设计基础课。
|
java.net |
为实现网络应用程序提供类。
|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
java.util.logging |
提供类和java 2平台的核心
TM测井设备接口。
|
javax.xml.bind.helpers |
只有使用JAXB提供商:一些的
javax.xml.bind接口提供了部分的默认实现。
|
Modifier and Type | Method and Description |
---|---|
String |
ByteArrayOutputStream.toString(String charsetName)
将缓冲区的内容到一个字符串使用命名
charset 解码字节。
|
Constructor and Description |
---|
InputStreamReader(InputStream in, String charsetName)
创建一个inputstreamreader使用指定的字符集。
|
OutputStreamWriter(OutputStream out, String charsetName)
创建一个outputstreamwriter使用指定的字符集。
|
PrintStream(File file, String csn)
创建一个新的打印流,无线自动冲洗,用指定的文件和字符集。
|
PrintStream(OutputStream out, boolean autoFlush, String encoding)
创建一个新的打印流。
|
PrintStream(String fileName, String csn)
创建一个新的打印流,无线自动冲洗,用指定的文件名和字符集。
|
PrintWriter(File file, String csn)
创建一个新的PrintWriter,无线自动冲洗,用指定的文件和字符集。
|
PrintWriter(String fileName, String csn)
创建一个新的PrintWriter,无线自动冲洗,用指定的文件名和字符集。
|
Modifier and Type | Method and Description |
---|---|
byte[] |
String.getBytes(String charsetName)
这
String 编码成一个序列使用指定的字符的字节,并将结果存储到一个新的字节数组。
|
Constructor and Description |
---|
String(byte[] bytes, int offset, int length, String charsetName)
构建了一种新的
String 通过解码指定的字节数组使用指定的字符集。
|
String(byte[] bytes, String charsetName)
通过使用指定的
charset解码指定的字节数组构造了一个新的
String 。
|
Modifier and Type | Method and Description |
---|---|
static String |
URLDecoder.decode(String s, String enc)
解码使用特定的编码方案
application/x-www-form-urlencoded 字符串。
|
static String |
URLEncoder.encode(String s, String enc)
翻译成
application/x-www-form-urlencoded 格式字符串使用一个特定的编码方案。
|
Constructor and Description |
---|
Formatter(File file, String csn)
构建与指定的文件和字符集的一个新的格式化程序。
|
Formatter(File file, String csn, Locale l)
构建了一种新的格式化程序与指定的文件,字符集,以及现场。
|
Formatter(OutputStream os, String csn)
构建与指定的输出流和字符集的一个新的格式化程序。
|
Formatter(OutputStream os, String csn, Locale l)
构建了一种新的格式化程序使用指定的输出流,字符集,以及现场。
|
Formatter(String fileName, String csn)
构建与指定的文件名和一个新的格式化字符。
|
Formatter(String fileName, String csn, Locale l)
构建了一种新的格式化程序与指定的文件名的字符集,以及现场。
|
Modifier and Type | Method and Description |
---|---|
void |
StreamHandler.setEncoding(String encoding)
设置(或更改)编码的
Handler用字符。
|
void |
Handler.setEncoding(String encoding)
这
Handler集编码使用的字符。
|
Modifier and Type | Method and Description |
---|---|
protected String |
AbstractMarshallerImpl.getJavaEncoding(String encoding)
得到相应的java从IANA名称编码。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.