001 package railo.transformer.bytecode.extern; 002 003 import java.io.IOException; 004 005 import railo.commons.io.IOUtil; 006 import railo.commons.io.res.Resource; 007 008 public class StringExternalizerReader { 009 010 private String str; 011 012 public StringExternalizerReader(Resource res) throws IOException { 013 str=IOUtil.toString(res, "UTF-8"); 014 } 015 016 public String read(int from, int to){ 017 return str.substring(from,to+1); 018 } 019 020 021 }