rabbit.cache
Interface FileHandler<T>

All Known Implementing Classes:
HttpHeaderFileHandler

public interface FileHandler<T>

An object that can read and write objects to file.

Author:
Robert Olofsson

Method Summary
 T read(InputStream is)
          Read a T from the given stream
 void write(OutputStream os, T t)
          Write a T to the given stream
 

Method Detail

read

T read(InputStream is)
       throws IOException
Read a T from the given stream

Throws:
IOException

write

void write(OutputStream os,
           T t)
           throws IOException
Write a T to the given stream

Throws:
IOException