public class URLAsset extends Object implements Asset
Constructor and Description |
---|
URLAsset(URL resource,
String path)
Creates a new URL asset.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
equals(Object obj) |
MediaType |
getContentType() |
long |
getLastModified() |
long |
getSize() |
int |
hashCode() |
boolean |
isDirectory() |
InputStream |
stream() |
String |
toString() |
public long getSize()
public long getLastModified()
getLastModified
in interface Asset
@Nonnull public MediaType getContentType()
getContentType
in interface Asset
public InputStream stream()
public void close()
close
in interface AutoCloseable
public boolean isDirectory()
isDirectory
in interface Asset
Copyright © 2022. All rights reserved.