Class PassThroughConverter

java.lang.Object
org.apache.tomcat.jakartaee.PassThroughConverter
All Implemented Interfaces:
Converter

public class PassThroughConverter extends Object implements Converter
No conversion.
  • Constructor Details

    • PassThroughConverter

      public PassThroughConverter()
      Default constructor.
  • Method Details

    • accepts

      public boolean accepts(String filename)
      Description copied from interface: Converter
      Check if the file can be processed by this converter.
      Specified by:
      accepts in interface Converter
      Parameters:
      filename - the file name
      Returns:
      true if the converter will process this file
    • convert

      public boolean convert(String path, InputStream src, OutputStream dest, EESpecProfile profile) throws IOException
      Description copied from interface: Converter
      Copies the source to the destination, converting it if necessary, according to the requirements of the given profile.
      Specified by:
      convert in interface Converter
      Parameters:
      path - The path to the data being converted
      src - The source data to convert
      dest - The destination to write the converted data
      profile - The profile that defines the conversion required
      Returns:
      true if the converter made a conversion to the file
      Throws:
      IOException - If the conversion fails