public abstract class FileStream extends AbstractOptionHandler implements InstanceStream
Modifier and Type | Field and Description |
---|---|
com.github.javacliparser.ClassOption |
sourceTypeOption |
Constructor and Description |
---|
FileStream() |
Modifier and Type | Method and Description |
---|---|
long |
estimatedRemainingInstances()
Gets the estimated number of remaining instances in this stream
|
InstancesHeader |
getHeader()
Gets the header of this stream.
|
boolean |
hasMoreInstances()
Gets whether this stream has more instances to output.
|
boolean |
isRestartable()
Gets whether this stream can restart.
|
InstanceExample |
nextInstance()
Gets the next example from this stream.
|
void |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.
|
void |
restart()
Restarts this stream.
|
copy, getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, getDescription, measureByteSize
public InstancesHeader getHeader()
ExampleStream
getHeader
in interface ExampleStream<Example<Instance>>
public long estimatedRemainingInstances()
ExampleStream
estimatedRemainingInstances
in interface ExampleStream<Example<Instance>>
public boolean hasMoreInstances()
ExampleStream
hasMoreInstances
in interface ExampleStream<Example<Instance>>
public InstanceExample nextInstance()
ExampleStream
nextInstance
in interface ExampleStream<Example<Instance>>
public boolean isRestartable()
ExampleStream
isRestartable
in interface ExampleStream<Example<Instance>>
public void restart()
ExampleStream
restart
in interface ExampleStream<Example<Instance>>
public void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandler
prepareForUseImpl
and not prepareForUse
since
prepareForUse
calls prepareForUseImpl
.monitor
- the TaskMonitor to userepository
- the ObjectRepository to useCopyright © 2013–2015 The Apache Software Foundation. All rights reserved.