org.jpublish
Class StaticResourceLoader

java.lang.Object
  |
  +--org.jpublish.StaticResourceLoader

public class StaticResourceLoader
extends java.lang.Object

A class for loading static web resources.

Author:
Anthony Eden

Constructor Summary
StaticResourceLoader()
          Construct a new StaticResourceLoader.
 
Method Summary
 void load(java.io.File file, java.io.OutputStream out)
          Load the resource from the given file and write it to the given OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticResourceLoader

public StaticResourceLoader()
Construct a new StaticResourceLoader.
Method Detail

load

public void load(java.io.File file,
                 java.io.OutputStream out)
          throws java.io.IOException
Load the resource from the given file and write it to the given OutputStream.
Parameters:
file - The file
out - The OutputStream
Throws:
java.io.IOException - Any IO error


Copyright (C) 2001 Anthony Eden. All Rights Reserved.