javatools.filehandlers
Class ByteMatchReader

java.lang.Object
  extended by javatools.datatypes.PeekIterator<java.util.regex.MatchResult>
      extended by javatools.filehandlers.MatchReader
          extended by javatools.filehandlers.ByteMatchReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Iterable<java.util.regex.MatchResult>, java.util.Iterator<java.util.regex.MatchResult>

public class ByteMatchReader
extends MatchReader

This class is part of the Java Tools (see http://mpii.de/yago-naga/javatools). It is licensed under the Creative Commons Attribution License (see http://creativecommons.org/licenses/by/3.0) by the YAGO-NAGA team (see http://mpii.de/yago-naga). Does the same as the MatchReader (see there), but deals with bytes instead of Chars (see SimpleInputStreamReader).


Nested Class Summary
 
Nested classes/interfaces inherited from class javatools.filehandlers.MatchReader
MatchReader.MyMatchResult
 
Nested classes/interfaces inherited from class javatools.datatypes.PeekIterator
PeekIterator.ElementaryPeekIterator<T>, PeekIterator.SimplePeekIterator<T>
 
Field Summary
 
Fields inherited from class javatools.filehandlers.MatchReader
BUFSIZE, MAXPATTERNLENGTH, QUOTE
 
Fields inherited from class javatools.datatypes.PeekIterator
closed, initialized, next
 
Constructor Summary
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
 
Method Summary
 void close()
          Closes the reader
 
Methods inherited from class javatools.filehandlers.MatchReader
finalize, internalNext, main
 
Methods inherited from class javatools.datatypes.PeekIterator
asList, asList, asSet, asSet, asSet, emptyIterator, hasNext, iterator, list, list, next, nextOrNull, numElements, numElements, peek, remove, toString, toString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteMatchReader

public ByteMatchReader(java.io.InputStream i,
                       java.util.regex.Pattern p)
Constructs a MatchReader from a Reader and a Pattern


ByteMatchReader

public ByteMatchReader(java.io.InputStream i,
                       java.lang.String p)
Constructs a MatchReader from a Reader and a Pattern


ByteMatchReader

public ByteMatchReader(java.io.File f,
                       java.util.regex.Pattern p,
                       java.lang.String announceMsg)
                throws java.io.FileNotFoundException
Constructs a MatchReader that reads from a file, with progress message (main constructor)

Throws:
java.io.FileNotFoundException

ByteMatchReader

public ByteMatchReader(java.lang.String f,
                       java.util.regex.Pattern p,
                       java.lang.String announceMsg)
                throws java.io.FileNotFoundException
Constructs a MatchReader that reads from a file, with progress message

Throws:
java.io.FileNotFoundException

ByteMatchReader

public ByteMatchReader(java.lang.String f,
                       java.lang.String p,
                       java.lang.String announceMsg)
                throws java.io.FileNotFoundException
Constructs a MatchReader that reads from a file, with progress message

Throws:
java.io.FileNotFoundException

ByteMatchReader

public ByteMatchReader(java.io.File f,
                       java.lang.String p,
                       java.lang.String announceMsg)
                throws java.io.FileNotFoundException
Constructs a MatchReader that reads from a file, with progress message

Throws:
java.io.FileNotFoundException

ByteMatchReader

public ByteMatchReader(java.io.File f,
                       java.lang.String p)
                throws java.io.FileNotFoundException
Constructs a MatchReader that reads from a file

Throws:
java.io.FileNotFoundException

ByteMatchReader

public ByteMatchReader(java.lang.String f,
                       java.lang.String p)
                throws java.io.FileNotFoundException
Constructs a MatchReader that reads from a file

Throws:
java.io.FileNotFoundException

ByteMatchReader

public ByteMatchReader(java.lang.String f,
                       java.util.regex.Pattern p)
                throws java.io.FileNotFoundException
Constructs a MatchReader that reads from a file

Throws:
java.io.FileNotFoundException

ByteMatchReader

public ByteMatchReader(java.io.File f,
                       java.util.regex.Pattern p)
                throws java.io.FileNotFoundException
Constructs a MatchReader that reads from a file

Throws:
java.io.FileNotFoundException
Method Detail

close

public void close()
Closes the reader

Specified by:
close in interface java.io.Closeable
Overrides:
close in class MatchReader