public class LeipzigLanguageSampleStream extends Object implements ObjectStream<LanguageSample>
| Constructor and Description | 
|---|
| LeipzigLanguageSampleStream(File leipzigFolder,
                           int sentencesPerSample,
                           int samplesPerLanguage) | 
| Modifier and Type | Method and Description | 
|---|---|
| LanguageSample | read()Returns the next object. | 
| void | reset()Repositions the stream at the beginning and the previously seen object sequence
 will be repeated exactly. | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic LeipzigLanguageSampleStream(File leipzigFolder, int sentencesPerSample, int samplesPerLanguage) throws IOException
IOExceptionpublic LanguageSample read() throws IOException
ObjectStreamread in interface ObjectStream<LanguageSample>IOException - if there is an error during readingpublic void reset()
           throws IOException
ObjectStreamreset in interface ObjectStream<LanguageSample>IOException - if there is an error during reseting the streamCopyright © 2018 The Apache Software Foundation. All rights reserved.