public static ResourcePostProcessor newResourceProcessor(final Resource resource,
      final ResourcePreProcessor preProcessor) {
    """
	A factory method for creating a {@link ResourceProcessor} based on provided {@link ResourcePreProcessor}.
	
	@param preProcessor
	{@link ResourcePreProcessor} to use as a {@link ResourceProcessor}.
	@return instance of {@link ResourceProcessor}.
    """
    return new ResourcePostProcessor() {
      public void process(final Reader reader, final Writer writer)
          throws IOException {
        preProcessor.process(resource, reader, writer);
      }
    };
  }
public static ResourcePostProcessor newResourceProcessor(final Resource resource,
      final ResourcePreProcessor preProcessor) {
    return new ResourcePostProcessor() {
      public void process(final Reader reader, final Writer writer)
          throws IOException {
        preProcessor.process(resource, reader, writer);
      }
    };
  }
public static ResourcePostProcessor newResourceProcessor ( final Resource resource , final ResourcePreProcessor preProcessor ) { return new ResourcePostProcessor ( ) { public void process ( final Reader reader , final Writer writer ) throws IOException { preProcessor . process ( resource , reader , writer ) ; } } ; }
A factory method for creating a {@link ResourceProcessor} based on provided {@link ResourcePreProcessor}.

@param preProcessor
{@link ResourcePreProcessor} to use as a {@link ResourceProcessor}.
@return instance of {@link ResourceProcessor}.
A factory method for creating a { @link ResourceProcessor } based on provided { @link ResourcePreProcessor } .