< prev index next >
src/java.base/share/classes/java/lang/System.java
Print this page
*** 45,54 ****
--- 45,55 ----
import java.security.ProtectionDomain;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.nio.channels.Channel;
import java.nio.channels.spi.SelectorProvider;
+ import java.nio.charset.Charset;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Properties;
*** 2148,2157 ****
--- 2149,2166 ----
}
public Stream<ModuleLayer> layers(ClassLoader loader) {
return ModuleLayer.layers(loader);
}
+ public String newStringNoRepl(byte[] bytes, Charset cs) {
+ return StringCoding.newStringNoRepl(bytes, cs);
+ }
+
+ public byte[] getBytesNoRepl(String s, Charset cs) {
+ return StringCoding.getBytesNoRepl(s, cs);
+ }
+
public String newStringUTF8NoRepl(byte[] bytes, int off, int len) {
return StringCoding.newStringUTF8NoRepl(bytes, off, len);
}
public byte[] getBytesUTF8NoRepl(String s) {
< prev index next >