< prev index next >

src/java.base/share/classes/java/lang/System.java

Print this page
rev 55686 : 8227587: Add internal privileged System.loadLibrary
Reviewed-by: rriggs, mchung


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             public void loadLibrary(Class<?> klass, String library) {
2279                 assert library.indexOf(java.io.File.separatorChar) < 0;
2280                 ClassLoader.loadLibrary(klass, library, false);
2281             }
2282         });
2283     }
2284 }
< prev index next >