public class MainPlaygroundScanFile extends Object
| Constructor and Description |
|---|
MainPlaygroundScanFile() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
static void |
mainBoyerMooreTest(String[] args) |
static void |
mainBz2Decode(String[] args) |
static void |
mainBz2DecodeNice(String[] args) |
static void |
mainWc(String[] args) |
static void |
printLines(InputStream in,
int count) |
static Map.Entry<Long,Boolean> |
wcBwd(PageNavigator pageNavigator)
Return the line count and whether the first position was a newline
|
static Map.Entry<Long,Boolean> |
wcFwd(PageNavigator pageNavigator)
Count the number of occurrences of '\n' together with a flag
whether it ocurred at the end
|
public static Map.Entry<Long,Boolean> wcFwd(PageNavigator pageNavigator) throws IOException
pageNavigator - IOExceptionpublic static Map.Entry<Long,Boolean> wcBwd(PageNavigator pageNavigator) throws IOException
pageNavigator - IOExceptionpublic static void mainBz2DecodeNice(String[] args) throws Exception
Exceptionpublic static void printLines(InputStream in, int count) throws IOException
IOExceptionpublic static void mainBoyerMooreTest(String[] args) throws IOException
IOExceptionpublic static void mainWc(String[] args) throws IOException
IOExceptionCopyright © 2020. All rights reserved.