public abstract class ByteArrayResourceStreamWriter
extends org.apache.wicket.util.resource.AbstractResourceStreamWriter
| Constructor and Description |
|---|
ByteArrayResourceStreamWriter() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getContentType()
Override this method to return the mime type of the content.
|
protected abstract byte[] |
load()
Load the file content as a byte array.
|
void |
write(OutputStream output)
Writes the byte array to the OutputStream from the client.
|
public abstract String getContentType()
getContentType in interface org.apache.wicket.util.resource.IResourceStreamgetContentType in class org.apache.wicket.util.resource.AbstractResourceStreamWriterAbstractResourceStreamWriter.getContentType()protected abstract byte[] load()
throws IOException
IOException - Signals that an I/O exception has occurred.public void write(OutputStream output) throws IOException
output - the outputIOException - Signals that an I/O exception has occurred.IResourceStreamWriter.write(java.io.OutputStream)Copyright © 2010–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.