public class FileEncoderConverter extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
canBeConvertWellFormedUtf8(byte[] sourceBytes,
Charset from) |
static boolean |
canBeConvertWellFormedUtf8(File file,
Charset from) |
static byte[] |
convertBytesEncode(byte[] sourceBytes,
Charset from,
Charset to) |
public static boolean canBeConvertWellFormedUtf8(@Nonnull byte[] sourceBytes, Charset from)
public static boolean canBeConvertWellFormedUtf8(@Nonnull File file, Charset from) throws IOException
IOException
public static byte[] convertBytesEncode(@Nonnull byte[] sourceBytes, Charset from, Charset to) throws CharacterCodingException
CharacterCodingException
Copyright © 2017 Perforce Software. All Rights Reserved.