org.apache.wicket.response
Class FileResponse
java.lang.Object
org.apache.wicket.Response
org.apache.wicket.response.FileResponse
public final class FileResponse
- extends Response
A Response implementation that writes to a file.
- Author:
- Jonathan Locke
Methods inherited from class org.apache.wicket.Response |
detectContentType, encodeURL, filter, getCharacterEncoding, isRedirect, println, redirect, reset, setCharacterEncoding, setContentLength, setContentType, setLastModifiedTime, setLocale, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileResponse
public FileResponse(File file)
- Constructor
- Parameters:
file
- The file to write to
close
public void close()
- Description copied from class:
Response
- Closes the response output stream
- Overrides:
close
in class Response
- See Also:
Response.close()
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStream
in class Response
- Returns:
- The output stream for this response
- See Also:
Response.getOutputStream()
write
public void write(CharSequence string)
- Description copied from class:
Response
- Writes the given string to the Response subclass output destination.
- Specified by:
write
in class Response
- Parameters:
string
- The string to write- See Also:
Response.write(CharSequence)
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.