utilMDE
Class MultiReader

Object
  extended by Reader
      extended by BufferedReader
          extended by LineNumberReader
              extended by EntryReader
                  extended by MultiReader
All Implemented Interfaces:
Closeable, Iterable<String>, Readable, Iterator<String>

Deprecated. use EntryReader instead

@Deprecated
public class MultiReader
extends EntryReader

Class that reads "entries" from a file. In the simplest case, entries can be lines. It supports: include files, comments, and multi-line entries (paragraphs). The syntax of each of these is customizable.

See Also:
and @see #set_entry_start_stop(String,String), EntryReader

Nested Class Summary
 
Nested classes/interfaces inherited from class EntryReader
EntryReader.Entry
 
Field Summary
 
Fields inherited from class EntryReader
entry_start_re, entry_stop_re
 
Fields inherited from class Reader
lock
 
Constructor Summary
MultiReader(BufferedReader reader)
          Deprecated. Create a MultiReader that does not support comments or include directives.
MultiReader(BufferedReader reader, String filename, String comment_re_string, String include_re_string)
          Deprecated. Create a MultiReader
MultiReader(File file)
          Deprecated. Create a MultiReader that does not support comments or include directives.
MultiReader(File file, String comment_re, String include_re)
          Deprecated. Create a MultiReader
MultiReader(String filename)
          Deprecated. Create a MultiReader that does not support comments or include directives.
MultiReader(String filename, String comment_re, String include_re)
          Deprecated. Create a new MultiReader starting with the specified file.
 
Method Summary
 
Methods inherited from class EntryReader
get_entry, get_filename, get_line_number, getFileName, getLineNumber, hasNext, iterator, main, mark, next, putback, read, read, readLine, remove, reset, set_entry_start_stop, set_entry_start_stop, setLineNumber, skip
 
Methods inherited from class BufferedReader
close, markSupported, ready
 
Methods inherited from class Reader
read, read
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiReader

public MultiReader(BufferedReader reader,
                   String filename,
                   String comment_re_string,
                   String include_re_string)
Deprecated. 
Create a MultiReader

Parameters:
reader - Initial source
comment_re_string - Regular expression that matches comments. Any text that matches comment_re is removed. A line that is entirely a comment is ignored
include_re_string - Regular expression that matches include directives. The expression should define one group that contains the include file name

MultiReader

public MultiReader(BufferedReader reader)
Deprecated. 
Create a MultiReader that does not support comments or include directives.

See Also:
MultiReader(BufferedReader,String,String,String)

MultiReader

public MultiReader(File file,
                   String comment_re,
                   String include_re)
            throws IOException
Deprecated. 
Create a MultiReader

Parameters:
file - Initial file to read.
comment_re - Regular expression that matches comments. Any text that matches comment_re is removed. A line that is entirely a comment is ignored.
include_re - Regular expression that matches include directives. The expression should define one group that contains the include file name.
Throws:
IOException

MultiReader

public MultiReader(File file)
            throws IOException
Deprecated. 
Create a MultiReader that does not support comments or include directives.

Throws:
IOException
See Also:
MultiReader(File,String,String)

MultiReader

public MultiReader(String filename,
                   String comment_re,
                   String include_re)
            throws IOException
Deprecated. 
Create a new MultiReader starting with the specified file.

Throws:
IOException
See Also:
MultiReader(File,String,String)

MultiReader

public MultiReader(String filename)
            throws IOException
Deprecated. 
Create a MultiReader that does not support comments or include directives.

Throws:
IOException
See Also:
MultiReader(String,String,String)