Class LanguageProfileWriter
- java.lang.Object
-
- com.optimaize.langdetect.profiles.LanguageProfileWriter
-
public class LanguageProfileWriter extends java.lang.ObjectWrites aLanguageProfileto an output stream or file.All file operations are done with UTF-8.
-
-
Constructor Summary
Constructors Constructor Description LanguageProfileWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(@NotNull LanguageProfile languageProfile, @NotNull java.io.OutputStream outputStream)Writes aLanguageProfileto an OutputStream in UTF-8.voidwriteToDirectory(@NotNull LanguageProfile languageProfile, @NotNull java.io.File fullPath)Writes aLanguageProfileto a folder using the language name as the file name.
-
-
-
Method Detail
-
write
public void write(@NotNull @NotNull LanguageProfile languageProfile, @NotNull @NotNull java.io.OutputStream outputStream) throws java.io.IOExceptionWrites aLanguageProfileto an OutputStream in UTF-8.- Throws:
java.io.IOException
-
writeToDirectory
public void writeToDirectory(@NotNull @NotNull LanguageProfile languageProfile, @NotNull @NotNull java.io.File fullPath) throws java.io.IOExceptionWrites aLanguageProfileto a folder using the language name as the file name.- Parameters:
fullPath- Must be an existing writable directory path.- Throws:
java.io.IOException- if such a file name exists already.
-
-