wicket.response
Class FileResponse

java.lang.Object
  extended by wicket.Response
      extended by wicket.response.FileResponse

public final class FileResponse
extends Response

A Response implementation that writes to a file.

Author:
Jonathan Locke

Constructor Summary
FileResponse(File file)
          Constructor
 
Method Summary
 void close()
          Closes the response output stream
 java.io.OutputStream getOutputStream()
           
 void write(java.lang.CharSequence string)
          Writes the given string to the Response subclass output destination.
 
Methods inherited from class wicket.Response
encodeURL, filter, getCharacterEncoding, isRedirect, println, redirect, reset, setCharacterEncoding, setContentLength, setContentType, setLastModifiedTime, setLocale, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileResponse

public FileResponse(File file)
Constructor

Parameters:
file - The file to write to
Method Detail

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 java.io.OutputStream getOutputStream()
Specified by:
getOutputStream in class Response
Returns:
The output stream for this response
See Also:
Response.getOutputStream()

write

public void write(java.lang.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-2007 Wicket developers. All Rights Reserved.