public class ByteMatchReader extends MatchReader
MatchReader.MyMatchResultPeekIterator.ElementaryPeekIterator<T>, PeekIterator.SimplePeekIterator<T>| Modifier and Type | Field and Description |
|---|---|
protected InputStream |
input
Holds the stream to read from
|
buffer, BUFSIZE, chars, crossLines, in, lastMatchEnd, matcher, MAXPATTERNLENGTH, pattern, QUOTEclosed, EMPTY, fetchedNextValue, next| Constructor and Description |
|---|
ByteMatchReader(File f,
Pattern p)
Constructs a MatchReader that reads from a file
|
ByteMatchReader(File f,
Pattern p,
String announceMsg)
Constructs a MatchReader that reads from a file, with progress message (main constructor)
|
ByteMatchReader(File f,
String p)
Constructs a MatchReader that reads from a file
|
ByteMatchReader(File f,
String p,
String announceMsg)
Constructs a MatchReader that reads from a file, with progress message
|
ByteMatchReader(InputStream i,
Pattern p)
Constructs a MatchReader from a Reader and a Pattern
|
ByteMatchReader(InputStream i,
String p)
Constructs a MatchReader from a Reader and a Pattern
|
ByteMatchReader(String f,
Pattern p)
Constructs a MatchReader that reads from a file
|
ByteMatchReader(String f,
Pattern p,
String announceMsg)
Constructs a MatchReader that reads from a file, with progress message
|
ByteMatchReader(String f,
String p)
Constructs a MatchReader that reads from a file
|
ByteMatchReader(String f,
String p,
String announceMsg)
Constructs a MatchReader that reads from a file, with progress message
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the reader
|
protected int |
read()
Reads 1 character
|
finalize, internalNext, mainasList, asList, asSet, asSet, asSet, emptyIterator, hasNext, internalSilentNext, iterator, list, list, next, nextOrNull, numElements, numElements, peek, remove, toString, toString, toStringclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemainingforEach, spliteratorprotected InputStream input
public ByteMatchReader(InputStream i, Pattern p)
public ByteMatchReader(InputStream i, String p)
public ByteMatchReader(File f, Pattern p, String announceMsg) throws FileNotFoundException
FileNotFoundExceptionpublic ByteMatchReader(String f, Pattern p, String announceMsg) throws FileNotFoundException
FileNotFoundExceptionpublic ByteMatchReader(String f, String p, String announceMsg) throws FileNotFoundException
FileNotFoundExceptionpublic ByteMatchReader(File f, String p, String announceMsg) throws FileNotFoundException
FileNotFoundExceptionpublic ByteMatchReader(File f, String p) throws FileNotFoundException
FileNotFoundExceptionpublic ByteMatchReader(String f, String p) throws FileNotFoundException
FileNotFoundExceptionpublic ByteMatchReader(String f, Pattern p) throws FileNotFoundException
FileNotFoundExceptionpublic ByteMatchReader(File f, Pattern p) throws FileNotFoundException
FileNotFoundExceptionprotected int read()
throws IOException
read in class MatchReaderIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class MatchReaderCopyright © 2018. All rights reserved.