Socket.class のここまではたどり着いたけど、ここで挫折。
https://docs.oracle.com/javase/jp/8/docs/api/java/security/AccessController.html
public InputStream getInputStream() throws IOException {
if (isClosed())
throw new SocketException("Socket is closed");
if (!isConnected())
throw new SocketException("Socket is not connected");
if (isInputShutdown())
throw new SocketException("Socket input is shutdown");
final Socket s = this;
InputStream is = null;
try {
is = AccessController.doPrivileged(
new PrivilegedExceptionAction<InputStream>() {
public InputStream run() throws IOException {
return impl.getInputStream();
}
});
} catch (java.security.PrivilegedActionException e) {
throw (IOException) e.getException();
}
return is;
}
Java入門・初心者質問スレ Part.8
■ このスレッドは過去ログ倉庫に格納されています
29デフォルトの名無しさん (ワッチョイ 2b65-Bw3Y [222.15.235.177])
2018/06/19(火) 17:39:32.24ID:0i3qw3JM0■ このスレッドは過去ログ倉庫に格納されています
