FileIt<RefGTRec>, SampleFileIt<RefGTRec>, java.io.Closeable, java.lang.AutoCloseable, java.util.Iterator<RefGTRec>public final class Bref3It extends java.lang.Object implements SampleFileIt<RefGTRec>
Class Bref3It represents an iterator whose next() which
returns records from a bref version 3 file.
Instances of class Bref3It are not thread-safe.
Methods of this class will terminate the Java Virtual Machine with an error message if an I/O error or file format error is detected.
| Constructor | Description |
|---|---|
Bref3It(java.io.File brefFile) |
Constructs a new
Bref3It instance. |
Bref3It(java.io.File brefFile,
Filter<Marker> markerFilter) |
Constructs a new
Bref4It instance. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Terminates the iteration and releases any system resources that
are held by this object.
|
java.io.File |
file() |
Returns the file from which the data are read, or
null if the data are read from standard input or are
computed data. |
boolean |
hasNext() |
Returns
true if the iteration has more elements, and returns
false otherwise. |
RefGTRec |
next() |
Returns the next element in the iteration.
|
Samples |
samples() |
Returns the list of samples.
|
java.lang.String |
toString() |
Returns a string representation of
this. |
public Bref3It(java.io.File brefFile)
Bref3It instance.brefFile - a bref version 3 file or null if the
bref version 3 file is to be read from standard inputjava.lang.IllegalArgumentException - if a format error is detected in a
line of the specified bref filepublic Bref3It(java.io.File brefFile,
Filter<Marker> markerFilter)
Bref4It instance.brefFile - a bref v4 filemarkerFilter - a marker filter or nulljava.lang.IllegalArgumentException - if a format error is detected in a
line of the specified bref v3 filejava.lang.NullPointerException - if file == nullpublic boolean hasNext()
true if the iteration has more elements, and returns
false otherwise.hasNext in interface java.util.Iterator<RefGTRec>true if the iteration has more elementspublic RefGTRec next()
next in interface java.util.Iterator<RefGTRec>java.util.NoSuchElementException - if the iteration has no more elementspublic void close()
FileItclose(), further
invocations of close() have no effect.public java.io.File file()
FileItnull if the data are read from standard input or are
computed data.public Samples samples()
SampleFileItsamples in interface SampleFileIt<RefGTRec>public java.lang.String toString()
FileItthis. The exact
details of the representation are unspecified and subject to change.