public class MultipleFieldReader
extends java.io.Reader
The clue is, that when the Reader doesn't reach a field, this field won't be requested from the program.
Constructor and Description |
---|
MultipleFieldReader(Program program,
ProgramFieldType[] infoFieldArr)
Creates a new instance of MultipleFieldReader.
|
MultipleFieldReader(Program program,
ProgramFieldType[] infoFieldArr,
java.lang.String fieldSeparator)
Creates a new instance of MultipleFieldReader.
|
MultipleFieldReader(Program program,
ProgramFieldType[] infoFieldArr,
java.lang.String[] fieldSeparatorArr)
Creates a new instance of MultipleFieldReader.
|
public MultipleFieldReader(Program program, ProgramFieldType[] infoFieldArr)
program
- The program to read the fields from.infoFieldArr
- The fields that should be read.public MultipleFieldReader(Program program, ProgramFieldType[] infoFieldArr, java.lang.String fieldSeparator)
program
- The program to read the fields from.infoFieldArr
- The fields that should be read.fieldSeparator
- The String to use for separating fields.public MultipleFieldReader(Program program, ProgramFieldType[] infoFieldArr, java.lang.String[] fieldSeparatorArr)
program
- The program to read the fields from.infoFieldArr
- The fields that should be read.fieldSeparatorArr
- An array with field separators after each field (not matching indices are ignored).public int read(char[] cbuf, int off, int len) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Reader
TV-Browser 3.4.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)