public class Loader
extends java.lang.Object
| Constructor and Description |
|---|
Loader() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getString(java.io.InputStream inputStream,
java.nio.charset.Charset charset)
Returns the string contents of the given stream.
|
static java.lang.String |
getString(java.nio.file.Path file,
java.nio.charset.Charset charset)
Returns the string contents of the given file.
|
static java.lang.String |
getString(java.net.URL url,
java.nio.charset.Charset charset)
Returns the string contents of the given URL.
|
public static java.lang.String getString(java.io.InputStream inputStream,
java.nio.charset.Charset charset)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getString(java.nio.file.Path file,
java.nio.charset.Charset charset)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getString(java.net.URL url,
java.nio.charset.Charset charset)
throws java.io.IOException
java.io.IOExceptionCopyright © 2009-2019 Aarhus University