mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 06:32:32 +00:00
* 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:
1 parent
1c25c0f408
commit
c393e70ca9
14 files changed
+219
-81
No files matched your search
@@ -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