Package | Description |
---|---|
com.norconex.commons.lang.file |
File-related utility classes.
|
com.norconex.commons.lang.io |
Utility classes when dealing with files and directories.
|
Modifier and Type | Method and Description |
---|---|
static String[] |
FileUtil.head(File file,
String encoding,
int numberOfLinesToRead,
boolean stripBlankLines,
IInputStreamFilter filter)
Returns the specified number of lines starting from the beginning
of a text file, using the given encoding.
|
static String[] |
FileUtil.tail(File file,
String encoding,
int numberOfLinesToRead,
boolean stripBlankLines,
IInputStreamFilter filter)
Returns the specified number of lines starting from the end
of a text file.
|
Modifier and Type | Class and Description |
---|---|
class |
RegexInputStreamFilter
Filters lines of text read from an InputStream decorated with
FilteredInputStream , based on a given regular expression. |
Constructor and Description |
---|
FilteredInputStream(InputStream is,
IInputStreamFilter filter)
Constructor, using UTF-8 as the character encoding.
|
FilteredInputStream(InputStream is,
IInputStreamFilter filter,
Charset encoding)
Constructor.
|
FilteredInputStream(InputStream is,
IInputStreamFilter filter,
String encoding)
Constructor.
|
Copyright © 2008–2021 Norconex Inc.. All rights reserved.