Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## de.jstacs.io
Class LimitedStringExtractor

    java.lang.Object
      de.jstacs.io.AbstractStringExtractor
          de.jstacs.io.LimitedStringExtractor

All Implemented Interfaces:
  Enumeration<String>

    public class LimitedStringExtractor

extends AbstractStringExtractor

This `AbstractStringExtractor` allows to read only a limited amount of data.

Author:
  Jens Keilwagen

Field Summary

Fields inherited from class de.jstacs.io.AbstractStringExtractor
`annotation, FASTA, ignore, ignorePattern, USUALLY`

Constructor Summary
`LimitedStringExtractor(AbstractStringExtractor se, int num)` This constructor creates a new instance based on a given `AbstractStringExtractor` and a maximal number of Strings to be read.

Method Summary
`SequenceAnnotation[]` | `getCurrentSequenceAnnotations()` Returns the `SequenceAnnotation` or `null` if no `SequenceAnnotation` is available.
`boolean` | `hasMoreElements()`
`String` | `nextElement()`

Methods inherited from class de.jstacs.io.AbstractStringExtractor
`getAnnotation`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### LimitedStringExtractor

    public LimitedStringExtractor(AbstractStringExtractor se,
                                  int num)

  This constructor creates a new instance based on a given `AbstractStringExtractor` and a maximal number of Strings to be read.

  Parameters:
    `se` - the underlying `AbstractStringExtractor`
    `num` - the maximal number of Strings to be read

Method Detail

### hasMoreElements

    public boolean hasMoreElements()

### nextElement

    public String nextElement()

### getCurrentSequenceAnnotations

    public SequenceAnnotation[] getCurrentSequenceAnnotations()

  Description copied from class: `AbstractStringExtractor`
  Returns the `SequenceAnnotation` or `null` if no `SequenceAnnotation` is available.

  Overrides:
    `getCurrentSequenceAnnotations` in class `AbstractStringExtractor`
  Returns:
    the `SequenceAnnotation` or `null` if no `SequenceAnnotation` is available.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD