public class UrlResourceStream extends AbstractResourceStream implements IFixedLocationResourceStream
IResourceStream,
IModifiable,
Serialized Form| Constructor and Description |
|---|
UrlResourceStream(URL url)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this resource.
|
String |
getContentType() |
InputStream |
getInputStream() |
URL |
getURL() |
Time |
lastModifiedTime() |
Bytes |
length() |
String |
locationAsString() |
String |
toString() |
getLocale, getStyle, getVariation, setLocale, setStyle, setVariationpublic UrlResourceStream(URL url)
url - URL of resourcepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface IResourceStreamIOExceptionpublic InputStream getInputStream() throws ResourceStreamNotFoundException
getInputStream in interface IResourceStreamResourceStreamNotFoundExceptionpublic URL getURL()
public Time lastModifiedTime()
lastModifiedTime in interface IModifiablelastModifiedTime in class AbstractResourceStreamIModifiable.lastModifiedTime()public String getContentType()
getContentType in interface IResourceStreamgetContentType in class AbstractResourceStreampublic Bytes length()
length in interface IResourceStreamlength in class AbstractResourceStreampublic String locationAsString()
locationAsString in interface IFixedLocationResourceStreamCopyright © 2006–2021 Apache Software Foundation. All rights reserved.