Class BackupCharsetFilePersister
- java.lang.Object
-
- jetbrains.buildServer.serverSide.maintenance.BackupCharsetFilePersister
-
public class BackupCharsetFilePersister extends Object
-
-
Constructor Summary
Constructors Constructor Description BackupCharsetFilePersister()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Charset
readCharset(ZipReader zipReader)
Returnsnull
when charset is not found in file.static void
saveCharset(ZipWriter zip, Charset charset)
-
-
-
Method Detail
-
saveCharset
public static void saveCharset(@NotNull ZipWriter zip, @NotNull Charset charset) throws IOException
- Throws:
IOException
-
readCharset
@Nullable public static Charset readCharset(@NotNull ZipReader zipReader) throws IOException
Returns
null
when charset is not found in file.- Parameters:
zipReader
- the ZIP stream reader.- Returns:
null
when charset is not found in file.- Throws:
IOException
- if a ZIP stream error occurs.
-
-