Package opennlp.tools.util
Klasse FilterObjectStream<S,T>
java.lang.Object
opennlp.tools.util.FilterObjectStream<S,T>
- Typparameter:
S- The sample type of the source or input stream.T- The sample type of this stream
- Alle implementierten Schnittstellen:
AutoCloseable,ObjectStream<T>
- Bekannte direkte Unterklassen:
AbstractToSentenceSampleStream,ADSentenceStream,ChunkSampleStream,ChunkSampleStream,ConlluLemmaSampleStream,ConlluPOSSampleStream,ConlluSentenceSampleStream,ConlluTokenSampleStream,ConllXPOSSampleStream,ConstitParseSampleStream,DetokenizeSentenceSampleStream,DocumentSampleStream,EmptyLinePreprocessorStream,EventTraceStream,FileToByteArraySampleStream,FileToStringSampleStream,LanguageDetectorSampleStream,LemmaSampleStream,MascNamedEntitySampleStream,MascPOSSampleStream,MascSentenceSampleStream,MascTokenSampleStream,MosesSentenceSampleStream,MucNameSampleStream,NameSampleCountersStream,NameSampleDataStream,NameSampleTypeFilter,NameToTokenSampleStream,OntoNotesNameSampleStream,OntoNotesParseSampleStream,ParagraphStream,ParseSampleStream,ParseToPOSSampleStream,PosSampleStream,POSToTokenSampleStream,SegmenterObjectStream,SentenceSampleStream,TokenSampleStream,WhitespaceTokenStream,WordTagSampleStream
Abstract base class for filtering
streams.
Filtering streams take an existing stream and convert its output to something else.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclose()Closes theObjectStreamand releases all allocated resources.voidreset()Repositions the stream at the beginning and the previously seen object sequence will be repeated exactly.Von Klasse geerbte Methoden java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden opennlp.tools.util.ObjectStream
read
-
Methodendetails
-
reset
Beschreibung aus Schnittstelle kopiert:ObjectStreamRepositions the stream at the beginning and the previously seen object sequence will be repeated exactly. This method can be used to re-read the stream if multiple passes over the objects are required.The implementation of this method is optional.
- Angegeben von:
resetin SchnittstelleObjectStream<S>- Löst aus:
IOException- Thrown if there is an error during resetting the stream.UnsupportedOperationException- Thrown if thereset()is not supported. By default, this is the case.
-
close
Beschreibung aus Schnittstelle kopiert:ObjectStreamCloses theObjectStreamand releases all allocated resources. After close was called, it's not allowed to callObjectStream.read()orObjectStream.reset().- Angegeben von:
closein SchnittstelleAutoCloseable- Angegeben von:
closein SchnittstelleObjectStream<S>- Löst aus:
IOException- Thrown if there is an error during closing the stream.
-