downey.hw3
Class Hw3Utilities

java.lang.Object
  extended bydowney.hw3.Hw3Utilities

public class Hw3Utilities
extends java.lang.Object


Constructor Summary
Hw3Utilities()
          Creates a new instance of Hw3Utilities
 
Method Summary
static void copyFile(javax.servlet.http.HttpServletResponse response, java.lang.String path)
          Copy the contents of a file to the browser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hw3Utilities

public Hw3Utilities()
Creates a new instance of Hw3Utilities

Method Detail

copyFile

public static void copyFile(javax.servlet.http.HttpServletResponse response,
                            java.lang.String path)
                     throws java.io.IOException
Copy the contents of a file to the browser

Parameters:
response - The response object for the browser.
It is important that neither getWriter nor getOutputStream has been called for this response object.
path - The complete path to the file to be copied
Throws:
java.io.IOException