本文整理汇总了Java中org.apache.hadoop.hbase.classification.InterfaceAudience.Public方法的典型用法代码示例。如果您正苦于以下问题:Java InterfaceAudience.Public方法的具体用法?Java InterfaceAudience.Public怎么用?Java InterfaceAudience.Public使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.hbase.classification.InterfaceAudience
的用法示例。
在下文中一共展示了InterfaceAudience.Public方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Base64OutputStream
import org.apache.hadoop.hbase.classification.InterfaceAudience; //导入方法依赖的package包/类
/**
* Constructs a {@link Base64OutputStream} in either ENCODE or DECODE mode.
* <p>
* Valid options:
*
* <ul>
* <li>ENCODE or DECODE: Encode or Decode as data is read.</li>
* <li>DONT_BREAK_LINES: don't break lines at 76 characters (only
* meaningful when encoding) <i>Note: Technically, this makes your
* encoding non-compliant.</i></li>
* </ul>
*
* <p>
* Example: <code>new Base64.Base64OutputStream( out, Base64.ENCODE )</code>
*
* @param out the <tt>OutputStream</tt> to which data will be written.
* @param options Specified options.
* @see Base64#ENCODE
* @see Base64#DECODE
* @see Base64#DONT_BREAK_LINES
* @since 1.3
*/
@InterfaceAudience.Public
@InterfaceStability.Stable
public Base64OutputStream(OutputStream out, int options) {
super(out);
this.breakLines = (options & DONT_BREAK_LINES) != DONT_BREAK_LINES;
this.encode = (options & ENCODE) == ENCODE;
this.bufferLength = encode ? 3 : 4;
this.buffer = new byte[bufferLength];
this.position = 0;
this.lineLength = 0;
this.suspendEncoding = false;
this.b4 = new byte[4];
this.options = options;
this.decodabet = getDecodabet(options);
}