2259 2260 public String newStringNoRepl(byte[] bytes, Charset cs) throws CharacterCodingException { 2261 return StringCoding.newStringNoRepl(bytes, cs); 2262 } 2263 2264 public byte[] getBytesNoRepl(String s, Charset cs) throws CharacterCodingException { 2265 return StringCoding.getBytesNoRepl(s, cs); 2266 } 2267 2268 public String newStringUTF8NoRepl(byte[] bytes, int off, int len) { 2269 return StringCoding.newStringUTF8NoRepl(bytes, off, len); 2270 } 2271 2272 public byte[] getBytesUTF8NoRepl(String s) { 2273 return StringCoding.getBytesUTF8NoRepl(s); 2274 } 2275 2276 public void setCause(Throwable t, Throwable cause) { 2277 t.setCause(cause); 2278 } 2279 2280 public void loadLibrary(Class<?> caller, String library) { 2281 assert library.indexOf(java.io.File.separatorChar) < 0; 2282 ClassLoader.loadLibrary(caller, library, false); 2283 } 2284 }); 2285 } 2286 } | 2259 2260 public String newStringNoRepl(byte[] bytes, Charset cs) throws CharacterCodingException { 2261 return StringCoding.newStringNoRepl(bytes, cs); 2262 } 2263 2264 public byte[] getBytesNoRepl(String s, Charset cs) throws CharacterCodingException { 2265 return StringCoding.getBytesNoRepl(s, cs); 2266 } 2267 2268 public String newStringUTF8NoRepl(byte[] bytes, int off, int len) { 2269 return StringCoding.newStringUTF8NoRepl(bytes, off, len); 2270 } 2271 2272 public byte[] getBytesUTF8NoRepl(String s) { 2273 return StringCoding.getBytesUTF8NoRepl(s); 2274 } 2275 2276 public void setCause(Throwable t, Throwable cause) { 2277 t.setCause(cause); 2278 } 2279 }); 2280 } 2281 } |