public class LanguageProfileWriter
extends java.lang.Object
LanguageProfile to an output stream or file.
All file operations are done with UTF-8.
| Constructor and Description |
|---|
LanguageProfileWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
write(@NotNull LanguageProfile languageProfile,
@NotNull java.io.OutputStream outputStream)
Writes a
LanguageProfile to an OutputStream in UTF-8. |
void |
writeToDirectory(@NotNull LanguageProfile languageProfile,
@NotNull java.io.File fullPath)
Writes a
LanguageProfile to a folder using the language name as the file name. |
public void write(@NotNull
@NotNull LanguageProfile languageProfile,
@NotNull
@NotNull java.io.OutputStream outputStream)
throws java.io.IOException
LanguageProfile to an OutputStream in UTF-8.java.io.IOExceptionpublic void writeToDirectory(@NotNull
@NotNull LanguageProfile languageProfile,
@NotNull
@NotNull java.io.File fullPath)
throws java.io.IOException
LanguageProfile to a folder using the language name as the file name.fullPath - Must be an existing writable directory path.java.io.IOException - if such a file name exists already.