本文整理了Java中org.jboss.resteasy.util.Base64.decodeToObject()
方法的一些代码示例,展示了Base64.decodeToObject()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Base64.decodeToObject()
方法的具体详情如下:
包路径:org.jboss.resteasy.util.Base64
类名称:Base64
方法名:decodeToObject
[英]Attempts to decode Base64 data and deserialize a Java Object within. Returns null
if there was an error.
[中]
代码示例来源:origin: resteasy/Resteasy
/**
* Attempts to decode Base64 data and deserialize a Java
* Object within. Returns <code>null</code> if there was an error.
*
* @param encodedObject The Base64 data to decode
* @return The decoded and deserialized object
* @throws NullPointerException if encodedObject is null
* @throws java.io.IOException if there is a general error
* @throws ClassNotFoundException if the decoded object is of a
* class that cannot be found by the JVM
* @since 1.5
*/
public static Object decodeToObject(String encodedObject)
throws java.io.IOException, java.lang.ClassNotFoundException
{
return decodeToObject(encodedObject, NO_OPTIONS, null);
}
代码示例来源:origin: org.jboss.resteasy/resteasy-core
/**
* Attempts to decode Base64 data and deserialize a Java
* Object within. Returns <code>null</code> if there was an error.
*
* @param encodedObject The Base64 data to decode
* @return The decoded and deserialized object
* @throws NullPointerException if encodedObject is null
* @throws java.io.IOException if there is a general error
* @throws ClassNotFoundException if the decoded object is of a
* class that cannot be found by the JVM
* @since 1.5
*/
public static Object decodeToObject(String encodedObject)
throws java.io.IOException, java.lang.ClassNotFoundException
{
return decodeToObject(encodedObject, NO_OPTIONS, null);
}
代码示例来源:origin: org.jboss.resteasy/resteasy-jaxrs-20
/**
* Attempts to decode Base64 data and deserialize a Java
* Object within. Returns <tt>null</tt> if there was an error.
*
* @param encodedObject The Base64 data to decode
* @return The decoded and deserialized object
* @throws NullPointerException if encodedObject is null
* @throws java.io.IOException if there is a general error
* @throws ClassNotFoundException if the decoded object is of a
* class that cannot be found by the JVM
* @since 1.5
*/
public static Object decodeToObject(String encodedObject)
throws java.io.IOException, java.lang.ClassNotFoundException
{
return decodeToObject(encodedObject, NO_OPTIONS, null);
}
内容来源于网络,如有侵权,请联系作者删除!