public class MergedResourceStream extends Object implements org.apache.wicket.util.resource.IResourceStream
| Constructor and Description |
|---|
MergedResourceStream(Class<?>[] scopes,
String[] files,
Locale locale,
String style)
Deprecated.
use ResourceSpec[] instead of scopes[] and files[]
|
MergedResourceStream(ResourceSpec[] specs,
Locale locale,
String style,
IResourcePreProcessor preProcessor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getContentType() |
InputStream |
getInputStream() |
Locale |
getLocale() |
boolean |
isPlainText() |
org.apache.wicket.util.time.Time |
lastModifiedTime() |
long |
length() |
byte[] |
preProcess(ResourceSpec resourceSpec,
byte[] content) |
void |
setLocale(Locale locale) |
protected byte[] |
toContent(byte[] content) |
@Deprecated public MergedResourceStream(Class<?>[] scopes, String[] files, Locale locale, String style)
public MergedResourceStream(ResourceSpec[] specs, Locale locale, String style, IResourcePreProcessor preProcessor)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.wicket.util.resource.IResourceStreamIOExceptionpublic String getContentType()
getContentType in interface org.apache.wicket.util.resource.IResourceStreampublic InputStream getInputStream() throws org.apache.wicket.util.resource.ResourceStreamNotFoundException
getInputStream in interface org.apache.wicket.util.resource.IResourceStreamorg.apache.wicket.util.resource.ResourceStreamNotFoundExceptionpublic Locale getLocale()
getLocale in interface org.apache.wicket.util.resource.IResourceStreampublic long length()
length in interface org.apache.wicket.util.resource.IResourceStreampublic void setLocale(Locale locale)
setLocale in interface org.apache.wicket.util.resource.IResourceStreampublic org.apache.wicket.util.time.Time lastModifiedTime()
lastModifiedTime in interface org.apache.wicket.util.watch.IModifiableprotected byte[] toContent(byte[] content)
public boolean isPlainText()
public byte[] preProcess(ResourceSpec resourceSpec, byte[] content)
Copyright © 2014 Molindo GmbH. All Rights Reserved.