public class TextFileToString
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CHUNK_SIZE
Read the file with a 4k chunk size.
|
static int |
END_OF_FILE
End of file marker.
|
| Constructor and Description |
|---|
TextFileToString() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.PropertyResourceBundle |
loadResource(java.io.InputStream is)
loadResource(): reads an entire stream into a ResourceBundle *
|
static java.lang.String |
readFile(java.lang.String file)
Read the entire file and return a string.
|
static java.lang.String |
readStream(java.io.InputStream is)
Read the entire file and return a string.
|
public static final int CHUNK_SIZE
public static final int END_OF_FILE
public static java.util.PropertyResourceBundle loadResource(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String readFile(java.lang.String file)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String readStream(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionCopyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.