Purple Code

com.purpletech.io
Interface CachedFS.Loader

All Known Implementing Classes:
CachedFS.BinaryLoader, CachedFS.TextLoader
Enclosing interface:
CachedFS

public static interface CachedFS.Loader

Callback that processes a file, turning it into an object, as it's loaded.


Method Summary
 java.lang.Object process(java.lang.String path, java.io.InputStream in)
          Process a file as it's loaded (or reloaded).
 

Method Detail

process

public java.lang.Object process(java.lang.String path,
                                java.io.InputStream in)
                         throws java.io.IOException
Process a file as it's loaded (or reloaded). No need to close the stream; the library does that.

Parameters:
path - the path name, relative to the root directory
in - an unbuffered input stream containing the file data
java.io.IOException

Documentation generated March 5 2003