buffer.append(block);
buffer.append(block,0,read);
    public String loadResourceAsString(String resourceName) throws IOException {        InputStream in=loadResource(resourceName);        InputStreamReader reader=new InputStreamReader(in);        StringBuffer buffer=new StringBuffer();        char[] block=new char[1024];        int read;        while(((read = reader.read(block))>=0)) {            buffer.append(block);        }        return buffer.toString();    }