public interface Resource extends StreamSource
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
exists() |
java.io.File |
getFile() |
java.lang.String |
getResourceLocation() |
java.lang.String |
getResourceName() |
java.net.URI |
getURI() |
java.net.URL |
getURL() |
boolean |
isReadable() |
long |
lastModified() |
getInputStream, getOutputStreamboolean exists()
boolean isReadable()
java.net.URL getURL()
throws java.io.IOException
java.io.IOExceptionjava.net.URI getURI()
throws java.io.IOException
java.io.IOExceptionjava.io.File getFile()
throws java.io.IOException
java.io.IOExceptionlong lastModified()
throws java.io.IOException
java.io.IOExceptionjava.lang.String getResourceName()
java.lang.String getResourceLocation()
Copyright © 2024. All Rights Reserved.