public class PluginResource extends Object implements org.springframework.core.io.Resource
| 构造器和说明 |
|---|
PluginResource(String path,
BasePlugin basePlugin)
相对Classpath 路径
|
| 限定符和类型 | 方法和说明 |
|---|---|
long |
contentLength() |
org.springframework.core.io.Resource |
createRelative(String relativePath) |
boolean |
exists() |
String |
getDescription() |
File |
getFile() |
String |
getFilename() |
InputStream |
getInputStream() |
URI |
getURI() |
URL |
getURL() |
boolean |
isFile() |
boolean |
isOpen() |
boolean |
isReadable() |
long |
lastModified() |
ReadableByteChannel |
readableChannel() |
public PluginResource(String path, BasePlugin basePlugin)
path - 路径basePlugin - basePlugin beanpublic InputStream getInputStream() throws IOException
getInputStream 在接口中 org.springframework.core.io.InputStreamSourceIOExceptionpublic ReadableByteChannel readableChannel() throws IOException
readableChannel 在接口中 org.springframework.core.io.ResourceIOExceptionpublic long contentLength()
throws IOException
contentLength 在接口中 org.springframework.core.io.ResourceIOExceptionpublic long lastModified()
throws IOException
lastModified 在接口中 org.springframework.core.io.ResourceIOExceptionpublic org.springframework.core.io.Resource createRelative(String relativePath)
createRelative 在接口中 org.springframework.core.io.Resourcepublic String getFilename()
getFilename 在接口中 org.springframework.core.io.Resourcepublic String getDescription()
getDescription 在接口中 org.springframework.core.io.Resourcepublic boolean exists()
exists 在接口中 org.springframework.core.io.Resourcepublic boolean isReadable()
isReadable 在接口中 org.springframework.core.io.Resourcepublic boolean isOpen()
isOpen 在接口中 org.springframework.core.io.Resourcepublic boolean isFile()
isFile 在接口中 org.springframework.core.io.Resourcepublic File getFile() throws IOException
getFile 在接口中 org.springframework.core.io.ResourceIOExceptionpublic URL getURL() throws IOException
getURL 在接口中 org.springframework.core.io.ResourceIOExceptionpublic URI getURI() throws IOException
getURI 在接口中 org.springframework.core.io.ResourceIOExceptionCopyright © 2019. All rights reserved.