public class NestedArchiveResource
extends java.lang.Object
implements org.springframework.core.io.ContextResource
Archive
.Constructor and Description |
---|
NestedArchiveResource(org.springframework.boot.loader.archive.Archive rootArchive,
java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
long |
contentLength() |
org.springframework.core.io.Resource |
createRelative(java.lang.String relativePath) |
boolean |
exists() |
java.lang.String |
getDescription() |
java.io.File |
getFile() |
java.lang.String |
getFilename() |
java.io.InputStream |
getInputStream() |
java.lang.String |
getPathWithinContext() |
java.net.URI |
getURI() |
java.net.URL |
getURL() |
boolean |
isOpen() |
boolean |
isReadable() |
long |
lastModified() |
java.lang.String |
toString() |
public NestedArchiveResource(org.springframework.boot.loader.archive.Archive rootArchive, java.lang.String path)
public java.lang.String getPathWithinContext()
getPathWithinContext
in interface org.springframework.core.io.ContextResource
public boolean exists()
exists
in interface org.springframework.core.io.Resource
public boolean isReadable()
isReadable
in interface org.springframework.core.io.Resource
public boolean isOpen()
isOpen
in interface org.springframework.core.io.Resource
public java.net.URL getURL() throws java.io.IOException
getURL
in interface org.springframework.core.io.Resource
java.io.IOException
public java.net.URI getURI() throws java.io.IOException
getURI
in interface org.springframework.core.io.Resource
java.io.IOException
public java.io.File getFile() throws java.io.IOException
getFile
in interface org.springframework.core.io.Resource
java.io.IOException
public long contentLength() throws java.io.IOException
contentLength
in interface org.springframework.core.io.Resource
java.io.IOException
public long lastModified() throws java.io.IOException
lastModified
in interface org.springframework.core.io.Resource
java.io.IOException
public org.springframework.core.io.Resource createRelative(java.lang.String relativePath) throws java.io.IOException
createRelative
in interface org.springframework.core.io.Resource
java.io.IOException
public java.lang.String getFilename()
getFilename
in interface org.springframework.core.io.Resource
public java.lang.String getDescription()
getDescription
in interface org.springframework.core.io.Resource
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface org.springframework.core.io.InputStreamSource
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object