Class TextConverter
java.lang.Object
org.apache.tomcat.jakartaee.TextConverter
- All Implemented Interfaces:
Converter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if the file can be processed by this converter.booleanconvert(String path, InputStream src, OutputStream dest, EESpecProfile profile) Copies the source to the destination, converting it if necessary, according to the requirements of the given profile.
-
Constructor Details
-
TextConverter
public TextConverter()Default constructor.
-
-
Method Details
-
accepts
-
convert
public boolean convert(String path, InputStream src, OutputStream dest, EESpecProfile profile) throws IOException Description copied from interface:ConverterCopies the source to the destination, converting it if necessary, according to the requirements of the given profile.- Specified by:
convertin interfaceConverter- Parameters:
path- The path to the data being convertedsrc- The source data to convertdest- The destination to write the converted dataprofile- The profile that defines the conversion required- Returns:
- true if the converter made a conversion to the file
- Throws:
IOException- If the conversion fails
-