wro4j-core/src/main/java/ro/isdc/wro/model/resource/processor/impl/js/SemicolonAppenderPreProcessor.java
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();
    }
  }
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}
{