prop2prefs

Unnamed repository; edit this file 'description' to name the repository.
git clone http://git.code.weiherhei.de/prop2prefs.git
Log | Files | Refs

PrefSink.java (649B)


      1 package de.jandankert.prefs;
      2 
      3 import java.io.IOException;
      4 import java.util.List;
      5 import java.util.Properties;
      6 
      7 /**
      8  * Definition of a Properties-"Sink". The implementation will be OS-specific.
      9  * 
     10  * @author Jan Dankert
     11  */
     12 public interface PrefSink
     13 {
     14 
     15     /**
     16      * Call the sink with properties.
     17      * @param props
     18      * @param path
     19      * @throws IOException
     20      */
     21     void sinkProperties(Properties props, List<String> path) throws IOException;
     22 
     23     /**
     24      * @throws IOException
     25      */
     26     void close() throws IOException;
     27 
     28     /**
     29      * @throws IOException
     30      */
     31     void open() throws IOException;
     32 }