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, wait
getReader, isModified, readBytes, readStr, readUtf8Str, writeTo
public InputStream getStream()
Resource
InputStream
getStream
in interface Resource
InputStream
public String getContentType()
Copyright © 2024. All rights reserved.