1 46 47 package org.codehaus.groovy.control.io; 48 49 import java.io.IOException ; 50 import java.io.Reader ; 51 import java.io.StringReader ; 52 53 import org.codehaus.groovy.control.CompilerConfiguration; 54 55 56 63 64 public class StringReaderSource extends AbstractReaderSource 65 { 66 67 70 private String string; 72 73 76 77 public StringReaderSource( String string, CompilerConfiguration configuration ) 78 { 79 super( configuration ); 80 this.string= string; 81 } 82 83 84 85 88 89 public Reader getReader() throws IOException  90 { 91 return new StringReader ( string ); 92 } 93 94 95 96 97 } 98 | Popular Tags |