public class ByteMatchReader extends MatchReader
MatchReader.MyMatchResultPeekIterator.ElementaryPeekIterator<T>, PeekIterator.SimplePeekIterator<T>| Modifier and Type | Field and Description |
|---|---|
protected java.io.InputStream |
input
Holds the stream to read from
|
buffer, BUFSIZE, chars, crossLines, in, lastMatchEnd, matcher, MAXPATTERNLENGTH, pattern, QUOTEclosed, EMPTY, initialized, next| Constructor and Description |
|---|
ByteMatchReader(java.io.File f,
java.util.regex.Pattern p)
Constructs a MatchReader that reads from a file
|
ByteMatchReader(java.io.File f,
java.util.regex.Pattern p,
java.lang.String announceMsg)
Constructs a MatchReader that reads from a file, with progress message (main constructor)
|
ByteMatchReader(java.io.File f,
java.lang.String p)
Constructs a MatchReader that reads from a file
|
ByteMatchReader(java.io.File f,
java.lang.String p,
java.lang.String announceMsg)
Constructs a MatchReader that reads from a file, with progress message
|
ByteMatchReader(java.io.InputStream i,
java.util.regex.Pattern p)
Constructs a MatchReader from a Reader and a Pattern
|
ByteMatchReader(java.io.InputStream i,
java.lang.String p)
Constructs a MatchReader from a Reader and a Pattern
|
ByteMatchReader(java.lang.String f,
java.util.regex.Pattern p)
Constructs a MatchReader that reads from a file
|
ByteMatchReader(java.lang.String f,
java.util.regex.Pattern p,
java.lang.String announceMsg)
Constructs a MatchReader that reads from a file, with progress message
|
ByteMatchReader(java.lang.String f,
java.lang.String p)
Constructs a MatchReader that reads from a file
|
ByteMatchReader(java.lang.String f,
java.lang.String p,
java.lang.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, toStringpublic ByteMatchReader(java.io.InputStream i,
java.util.regex.Pattern p)
public ByteMatchReader(java.io.InputStream i,
java.lang.String p)
public ByteMatchReader(java.io.File f,
java.util.regex.Pattern p,
java.lang.String announceMsg)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic ByteMatchReader(java.lang.String f,
java.util.regex.Pattern p,
java.lang.String announceMsg)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic ByteMatchReader(java.lang.String f,
java.lang.String p,
java.lang.String announceMsg)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic ByteMatchReader(java.io.File f,
java.lang.String p,
java.lang.String announceMsg)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic ByteMatchReader(java.io.File f,
java.lang.String p)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic ByteMatchReader(java.lang.String f,
java.lang.String p)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic ByteMatchReader(java.lang.String f,
java.util.regex.Pattern p)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic ByteMatchReader(java.io.File f,
java.util.regex.Pattern p)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionprotected int read()
throws java.io.IOException
read in class MatchReaderjava.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class MatchReader