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 CharsetreadCharset(ZipReader zipReader)Returnsnullwhen charset is not found in file.static voidsaveCharset(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
nullwhen charset is not found in file.- Parameters:
zipReader- the ZIP stream reader.- Returns:
nullwhen charset is not found in file.- Throws:
IOException- if a ZIP stream error occurs.
-
-