Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
libcore
Commits
1962abb0
Commit
1962abb0
authored
11 years ago
by
Elliott Hughes
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Retire the java.nio.charset.Charsets Charset constants."
parents
b6e8336a
29377d58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
20 deletions
+1
-20
luni/src/main/java/java/nio/charset/Charsets.java
luni/src/main/java/java/nio/charset/Charsets.java
+1
-20
No files found.
luni/src/main/java/java/nio/charset/Charsets.java
View file @
1962abb0
...
@@ -17,30 +17,11 @@
...
@@ -17,30 +17,11 @@
package
java.nio.charset
;
package
java.nio.charset
;
/**
/**
* Provides convenient access to the most important built-in charsets. Saves a hash lookup and
* Various special-case charset conversions (for performance).
* unnecessary handling of UnsupportedEncodingException at call sites, compared to using the
* charset's name.
*
* Also various special-case charset conversions (for performance).
*
*
* @hide internal use only
* @hide internal use only
*/
*/
public
final
class
Charsets
{
public
final
class
Charsets
{
/**
* A cheap and type-safe constant for the ISO-8859-1 Charset.
*/
public
static
final
Charset
ISO_8859_1
=
Charset
.
forName
(
"ISO-8859-1"
);
/**
* A cheap and type-safe constant for the US-ASCII Charset.
*/
public
static
final
Charset
US_ASCII
=
Charset
.
forName
(
"US-ASCII"
);
/**
* A cheap and type-safe constant for the UTF-8 Charset.
*/
public
static
final
Charset
UTF_8
=
Charset
.
forName
(
"UTF-8"
);
/**
/**
* Returns a new byte array containing the bytes corresponding to the given characters,
* Returns a new byte array containing the bytes corresponding to the given characters,
* encoded in US-ASCII. Unrepresentable characters are replaced by (byte) '?'.
* encoded in US-ASCII. Unrepresentable characters are replaced by (byte) '?'.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment