@FunctionalInterface
public static interface SslOptions.Resource
InputStream representing a resource. The resulting InputStream must be closed by
the calling code.| Modifier and Type | Method and Description |
|---|---|
static SslOptions.Resource |
from(java.io.File file)
|
static SslOptions.Resource |
from(java.net.URL url)
|
java.io.InputStream |
get()
Obtains the
InputStream. |
static SslOptions.Resource from(java.net.URL url)
url - the URL to obtain the InputStream from.SslOptions.Resource that opens a connection to the URL and obtains the InputStream for it.static SslOptions.Resource from(java.io.File file)
file - the File to obtain the InputStream from.SslOptions.Resource that obtains the FileInputStream for the given File.java.io.InputStream get()
throws java.io.IOException
InputStream.InputStream.java.io.IOExceptionCopyright © 2025. All rights reserved.