package com.izforge.izpack.util;

import java.io.*;

/**
 * Created by IntelliJ IDEA.
 * User: sora
 * Date: Nov 30, 2009
 * Time: 8:09:57 PM
 * To change this template use File | Settings | File Templates.
 */
public interface VariableSubstitutor extends Serializable {
    boolean areBracesRequired();

    void setBracesRequired(boolean braces);

    String substitute(String str, String type) throws IllegalArgumentException;

    int substitute(InputStream in, OutputStream out, String type, String encoding)
            throws IllegalArgumentException, UnsupportedEncodingException, IOException;

    String substitute(InputStream in, String type
            )
                    throws IllegalArgumentException, UnsupportedEncodingException,
                    IOException;

    int substitute(Reader reader, Writer writer, String type)
                            throws IllegalArgumentException, IOException;
}

@@ -57,154 +57,45 @@
 %0A * 
-Created by IntelliJ IDEA.%0A * User: sora%0A * Date: Nov 30, 2009%0A * Time: 8:09:57 PM%0A * To change this template use File %7C Settings %7C File Templates.
+Interface of the variable substitutor
 %0A */
@@ -446,38 +446,8 @@
 ion,
- UnsupportedEncodingException,
  IOE
@@ -510,125 +510,42 @@
 type
-%0A            )%0A                    throws IllegalArgumentException, UnsupportedEncodingException,%0A                   
+) throws IllegalArgumentException,
  IOE
@@ -620,36 +620,8 @@
 ype)
-%0A                           
  thr

Clean on substitutor interface