本文整理了Java中org.geotools.feature.type.DateUtil.parseBase64()
方法的一些代码示例,展示了DateUtil.parseBase64()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DateUtil.parseBase64()
方法的具体详情如下:
包路径:org.geotools.feature.type.DateUtil
类名称:DateUtil
方法名:parseBase64
[英]Parse base64 data from text. This converts the base64 data into a byte array of the appopriate length. In keeping with the recommendations,
[中]从文本解析base64数据。这将base64数据转换为相应长度的字节数组。根据建议,
代码示例来源:origin: geotools/geotools
/**
* Parse base64 data from text. This converts the base64 data into a byte array of the
* appopriate length. In keeping with the recommendations,
*
* @param text text to be parsed (may be null, or include extra characters)
* @return byte array of data
* @throws IllegalArgumentException if invalid character in base64 representation
*/
public static byte[] deserializeBase64(String text) throws IllegalArgumentException {
if (text == null) {
return null;
} else {
return parseBase64(text);
}
}
代码示例来源:origin: org.geotools/gt-main
/**
* Parse base64 data from text. This converts the base64 data into a byte
* array of the appopriate length. In keeping with the recommendations,
*
* @param text text to be parsed (may be null, or include extra characters)
*
* @return byte array of data
*
* @throws IllegalArgumentException if invalid character in base64
* representation
*/
public static byte[] deserializeBase64(String text)
throws IllegalArgumentException {
if (text == null) {
return null;
} else {
return parseBase64(text);
}
}
代码示例来源:origin: org.geotools/gt2-main
/**
* Parse base64 data from text. This converts the base64 data into a byte
* array of the appopriate length. In keeping with the recommendations,
*
* @param text text to be parsed (may be null, or include extra characters)
*
* @return byte array of data
*
* @throws IllegalArgumentException if invalid character in base64
* representation
*/
public static byte[] deserializeBase64(String text)
throws IllegalArgumentException {
if (text == null) {
return null;
} else {
return parseBase64(text);
}
}
内容来源于网络,如有侵权,请联系作者删除!