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 voidclose()Closes the underlyingDataOutputStream.abstract voidpersist()Serializes themodelusing thewriteUTF(String),writeDouble(double), orwriteInt(int)} methods implemented by extending classes.abstract voidwriteDouble(double d) Writes a singledoubleto the underlyingDataOutputStream.abstract voidwriteInt(int i) Writes a singleintto the underlyingDataOutputStream.abstract voidWrites aStringto the underlyingDataOutputStream.
-
Konstruktordetails
-
AbstractModelWriter
public AbstractModelWriter()
-
-
Methodendetails
-
writeUTF
Writes aStringto the underlyingDataOutputStream.- Parameter:
s- TheUTF encodedcharacters.- Löst aus:
IOException- Thrown if IO errors occurred.
-
writeInt
Writes a singleintto the underlyingDataOutputStream.- Parameter:
i- Theintvalue.- Löst aus:
IOException- Thrown if IO errors occurred.
-
writeDouble
Writes a singledoubleto the underlyingDataOutputStream.- Parameter:
d- Thedoublevalue.- Löst aus:
IOException- Thrown if IO errors occurred.
-
close
Closes the underlyingDataOutputStream.- Löst aus:
IOException- Thrown if IO errors occurred.
-
persist
Serializes themodelusing thewriteUTF(String),writeDouble(double), orwriteInt(int)} methods implemented by extending classes.- Löst aus:
IOException- Thrown if IO errors occurred.
-