Class TextConverter

  • All Implemented Interfaces:
    Converter

    public class TextConverter
    extends Object
    implements Converter
    Converter for text resources.
    • Constructor Detail

      • TextConverter

        public TextConverter()
        Default constructor.
    • Method Detail

      • 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