|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.norconex.commons.lang.io.IOUtil
public final class IOUtil
I/O related utility methods.
Method Summary | |
---|---|
static String[] |
head(InputStream is,
int lineQty)
Gets the first lines from an input stream. |
static String[] |
tail(InputStream is,
int lineQty)
Gets the last lines from an input stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String[] tail(InputStream is, int lineQty) throws IOException
FileUtil.tail(java.io.File, int)
which is more efficient,
especially on large files.
is
- input streamlineQty
- maximum number of lines to return
IOException
- problem reading linespublic static String[] head(InputStream is, int lineQty) throws IOException
is
- input streamlineQty
- maximum number of lines to return
IOException
- problem reading lines
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |