public void process(final Resource resource, final Reader reader, final Writer writer)
    throws IOException {
    try {
      final String script = IOUtils.toString(reader);
      writer.write(script);
      if (isSemicolonNeeded(script)) {
        writer.write(';');
      }
    } finally {
      reader.close();
      writer.close();
    }
  }
public void process ( final Resource resource , final Reader reader , final Writer writer ) throws IOException { try { final String script = IOUtils . toString ( reader ) ; writer . write ( script ) ; if ( isSemicolonNeeded ( script ) ) { writer . write ( ';' ) ; } } finally { reader . close ( ) ; writer . close ( ) ; } }
{@inheritDoc}