1 16 17 package org.springframework.util; 18 19 import java.io.IOException ; 20 import java.io.InputStream ; 21 import java.io.OutputStream ; 22 import java.io.Reader ; 23 import java.io.Writer ; 24 import java.util.Properties ; 25 26 44 public interface PropertiesPersister { 45 46 54 void load(Properties props, InputStream is) throws IOException ; 55 56 63 void load(Properties props, Reader reader) throws IOException ; 64 65 66 75 void store(Properties props, OutputStream os, String header) throws IOException ; 76 77 85 void store(Properties props, Writer writer, String header) throws IOException ; 86 87 88 96 void loadFromXml(Properties props, InputStream is) throws IOException ; 97 98 107 void storeToXml(Properties props, OutputStream os, String header) throws IOException ; 108 109 119 void storeToXml(Properties props, OutputStream os, String header, String encoding) throws IOException ; 120 121 } 122 | Popular Tags |