org.apache.jackrabbit.util.Base64.decodeOrEncode()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(83)

本文整理了Java中org.apache.jackrabbit.util.Base64.decodeOrEncode()方法的一些代码示例,展示了Base64.decodeOrEncode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Base64.decodeOrEncode()方法的具体详情如下:
包路径:org.apache.jackrabbit.util.Base64
类名称:Base64
方法名:decodeOrEncode

Base64.decodeOrEncode介绍

[英]Base64-decodes or -encodes the given string, depending on whether or not it contains a "{base64}" prefix. If the string gets encoded, the "{base64}" prefix is added to it.
[中]Base64对给定字符串进行解码或-编码,具体取决于该字符串是否包含“{Base64}”前缀。如果对字符串进行编码,则会向其添加“{base64}”前缀。

代码示例

代码示例来源:origin: apache/jackrabbit

/**
 * Base64-decodes or -encodes (see {@link #decodeOrEncode(String)}
 * all the given arguments and prints the results on separate lines
 * in standard output.
 *
 * @since Apache Jackrabbit 2.3
 * @param args command line arguments to be decoded or encoded
 */
public static void main(String[] args) {
  for (String arg : args) {
    System.out.println(decodeOrEncode(arg));
  }
}

代码示例来源:origin: org.apache.jackrabbit/jackrabbit-jcr-commons

/**
 * Base64-decodes or -encodes (see {@link #decodeOrEncode(String)}
 * all the given arguments and prints the results on separate lines
 * in standard output.
 *
 * @since Apache Jackrabbit 2.3
 * @param args command line arguments to be decoded or encoded
 */
public static void main(String[] args) {
  for (String arg : args) {
    System.out.println(decodeOrEncode(arg));
  }
}

代码示例来源:origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * Base64-decodes or -encodes (see {@link #decodeOrEncode(String)}
 * all the given arguments and prints the results on separate lines
 * in standard output.
 *
 * @since Apache Jackrabbit 2.3
 * @param args command line arguments to be decoded or encoded
 */
public static void main(String[] args) {
  for (String arg : args) {
    System.out.println(decodeOrEncode(arg));
  }
}

相关文章

微信公众号

最新文章

更多