public final class InputStreamResource extends AbstractResource
URL_PREFIX_CLASSPATH, URL_PREFIX_FILE, URL_PREFIX_JAR, URL_PREFIX_ZIP, URL_PROTOCOL_FILE, URL_PROTOCOL_JAR, URL_PROTOCOL_VFS, URL_PROTOCOL_ZIP, URL_SEPARATOR_JAR| Constructor and Description |
|---|
InputStreamResource(InputStream is) |
InputStreamResource(InputStream is,
String path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exist()
是否存在
|
URL |
getURL()
URL 对象.
|
InputStream |
openStream()
打开文件输入流.
|
String |
toString() |
getFile, getFileName, getPath, getRelativePathName, getURI, isDirectory, isFile, lastModified, length, setPath, setRelativePathName, toByteArray, toCharArray, toStringpublic InputStreamResource(InputStream is)
public InputStreamResource(InputStream is, String path)
public InputStream openStream()
Resourcepublic URL getURL()
ResourcegetURL in interface ResourcegetURL in class AbstractResourcepublic boolean exist()
Resourceexist in interface Resourceexist in class AbstractResourceCopyright © 2016 jetbrick. All rights reserved.