Home | History | Annotate | Download | only in java-jni
      1 package org.clearsilver;
      2 
      3 import java.io.IOException;
      4 
      5 /**
      6  * Interface for CS file hook
      7  *
      8  * @author smarti (at) google.com (Sergio Marti)
      9  */
     10 public interface CSFileLoader {
     11 
     12   /**
     13    * Callback method that is expected to return the contents of the specified
     14    * file as a string.
     15    * @param hdf the HDF structure associated with HDF or CS object making the
     16    * callback.
     17    * @param filename the name of the file that should be loaded.
     18    * @return a string containing the contents of the file.
     19    */
     20   public String load(HDF hdf, String filename) throws IOException;
     21 
     22 }
     23