2257
2258 public String newStringNoRepl(byte[] bytes, Charset cs) throws CharacterCodingException {
2259 return StringCoding.newStringNoRepl(bytes, cs);
2260 }
2261
2262 public byte[] getBytesNoRepl(String s, Charset cs) throws CharacterCodingException {
2263 return StringCoding.getBytesNoRepl(s, cs);
2264 }
2265
2266 public String newStringUTF8NoRepl(byte[] bytes, int off, int len) {
2267 return StringCoding.newStringUTF8NoRepl(bytes, off, len);
2268 }
2269
2270 public byte[] getBytesUTF8NoRepl(String s) {
2271 return StringCoding.getBytesUTF8NoRepl(s);
2272 }
2273
2274 public void setCause(Throwable t, Throwable cause) {
2275 t.setCause(cause);
2276 }
2277 });
2278 }
2279 }
|
2257
2258 public String newStringNoRepl(byte[] bytes, Charset cs) throws CharacterCodingException {
2259 return StringCoding.newStringNoRepl(bytes, cs);
2260 }
2261
2262 public byte[] getBytesNoRepl(String s, Charset cs) throws CharacterCodingException {
2263 return StringCoding.getBytesNoRepl(s, cs);
2264 }
2265
2266 public String newStringUTF8NoRepl(byte[] bytes, int off, int len) {
2267 return StringCoding.newStringUTF8NoRepl(bytes, off, len);
2268 }
2269
2270 public byte[] getBytesUTF8NoRepl(String s) {
2271 return StringCoding.getBytesUTF8NoRepl(s);
2272 }
2273
2274 public void setCause(Throwable t, Throwable cause) {
2275 t.setCause(cause);
2276 }
2277
2278 @CallerSensitive
2279 public void loadLibrary(String library) {
2280 Class<?> klass = Reflection.getCallerClass();
2281 assert(library.indexOf(File.separatorChar) < 0, "library name must not contain directory separators");
2282 if (System.getSecurityManager() == null) {
2283 ClassLoader.loadLibrary(klass, library, false);
2284 } else {
2285 AccessController.doPrivileged(
2286 new java.security.PrivilegedAction<>() {
2287 public Void run() {
2288 ClassLoader.loadLibrary(klass, library, false);
2289 return null;
2290 }
2291 });
2292 }
2293 }
2294 });
2295 }
2296 }
|