Package opennlp.tools.ml.model
Klasse AbstractModelWriter
java.lang.Object
opennlp.tools.ml.model.AbstractModelWriter
- Bekannte direkte Unterklassen:
AbstractMLModelWriter
,GenericModelWriter
An abstract, basic implementation of a model writer.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract void
close()
Closes the underlyingDataOutputStream
.abstract void
persist()
Serializes themodel
using thewriteUTF(String)
,writeDouble(double)
, orwriteInt(int)
} methods implemented by extending classes.abstract void
writeDouble
(double d) Writes a singledouble
to the underlyingDataOutputStream
.abstract void
writeInt
(int i) Writes a singleint
to the underlyingDataOutputStream
.abstract void
Writes aString
to the underlyingDataOutputStream
.
-
Konstruktordetails
-
AbstractModelWriter
public AbstractModelWriter()
-
-
Methodendetails
-
writeUTF
Writes aString
to the underlyingDataOutputStream
.- Parameter:
s
- TheUTF encoded
characters.- Löst aus:
IOException
- Thrown if IO errors occurred.
-
writeInt
Writes a singleint
to the underlyingDataOutputStream
.- Parameter:
i
- Theint
value.- Löst aus:
IOException
- Thrown if IO errors occurred.
-
writeDouble
Writes a singledouble
to the underlyingDataOutputStream
.- Parameter:
d
- Thedouble
value.- Löst aus:
IOException
- Thrown if IO errors occurred.
-
close
Closes the underlyingDataOutputStream
.- Löst aus:
IOException
- Thrown if IO errors occurred.
-
persist
Serializes themodel
using thewriteUTF(String)
,writeDouble(double)
, orwriteInt(int)
} methods implemented by extending classes.- Löst aus:
IOException
- Thrown if IO errors occurred.
-