public class Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(InputStream is,
OutputStream os) |
static String |
getExtension(String filename)
Get the extension of a filename
|
static String |
toString(InputStream is,
Charset charset) |
public static String getExtension(String filename)
The extension is the string after the last '.' in the filename.
filename - the name of the filepublic static void copy(InputStream is, OutputStream os) throws IOException
IOExceptionpublic static String toString(InputStream is, Charset charset) throws IOException
IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.