public class HttpResource extends Object implements Resource, Serializable
| Constructor and Description |
|---|
HttpResource(Resource resource,
String contentType)
构造
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
获取自定义Content-Type类型
|
String |
getName()
获取资源名,例如文件资源的资源名为文件名
|
InputStream |
getStream()
获得
InputStream |
URL |
getUrl()
获得解析后的
URL,无对应URL的返回null |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReader, isModified, readBytes, readStr, readUtf8Str, writeTopublic InputStream getStream()
ResourceInputStreamgetStream in interface ResourceInputStreampublic String getContentType()
Copyright © 2025. All rights reserved.