forked from I2P_Developers/i2p.i2p
* HTTP Proxy:
- Add support for error page translations - Add support for external pages for all errors - Fix lack of \r in error page headers - HTML transitional fixes - Cleanups
This commit is contained in:
@ -196,9 +196,14 @@ public class FileUtil {
|
||||
* Read in the last few lines of a (newline delimited) textfile, or null if
|
||||
* the file doesn't exist.
|
||||
*
|
||||
* Warning - this inefficiently allocates a StringBuilder of size maxNumLines*80,
|
||||
* so don't make it too big.
|
||||
* Warning - converts \r\n to \n
|
||||
*
|
||||
* @param startAtBeginning if true, read the first maxNumLines, otherwise read
|
||||
* the last maxNumLines
|
||||
* @param maxNumLines max number of lines (or -1 for unlimited)
|
||||
* @return string or null; does not throw IOException.
|
||||
*
|
||||
*/
|
||||
public static String readTextFile(String filename, int maxNumLines, boolean startAtBeginning) {
|
||||
|
Reference in New Issue
Block a user