@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(File file)
|
static SslOptions.Resource |
from(URL url)
|
InputStream |
get()
Obtains the
InputStream. |
static SslOptions.Resource from(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(File file)
file - the File to obtain the InputStream from.SslOptions.Resource that obtains the FileInputStream for the given File.InputStream get() throws IOException
InputStream.InputStream.IOExceptionCopyright © 2021 lettuce.io. All rights reserved.