Class Util
java.lang.Object
org.apache.tomcat.jakartaee.Util
Utility methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopy(InputStream is, OutputStream os) Buffered copy.static StringgetExtension(String filename) Get the extension of a filenamestatic StringtoString(InputStream is, Charset charset) Convert the input bytes as a string.
-
Constructor Details
-
Util
private Util()
-
-
Method Details
-
getExtension
-
copy
Buffered copy.- Parameters:
is- the inputos- the output- Throws:
IOException- if an exception occurs
-
toString
Convert the input bytes as a string.- Parameters:
is- the input byte streamcharset- the charset to use- Returns:
- the converted string
- Throws:
IOException- if an exception occurs
-