本文整理汇总了Java中org.apache.xerces.impl.dv.util.HexBin.encode方法的典型用法代码示例。如果您正苦于以下问题:Java HexBin.encode方法的具体用法?Java HexBin.encode怎么用?Java HexBin.encode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.xerces.impl.dv.util.HexBin
的用法示例。
在下文中一共展示了HexBin.encode方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: unparse
import org.apache.xerces.impl.dv.util.HexBin; //导入方法依赖的package包/类
/**
* Convert a value of this datatype out
* to lexical form.
*/
@Override
public String unparse(Object value) {
if (value instanceof byte[]) {
return HexBin.encode((byte[])value);
} else {
throw new DatatypeFormatException("hexBinary asked to encode a non-byte arrary");
}
}
示例2: ReviewStatus
import org.apache.xerces.impl.dv.util.HexBin; //导入方法依赖的package包/类
public ReviewStatus(Review review, User reviewer, String reviewComment, boolean completed, byte[] coverage, Date created, Date modified) {
this.review = review;
this.reviewer = reviewer;
this.reviewComment = reviewComment;
this.completed = completed;
this.coverage = HexBin.encode(coverage);
this.created = created;
this.modified = modified;
}
示例3: toString
import org.apache.xerces.impl.dv.util.HexBin; //导入方法依赖的package包/类
public synchronized String toString() {
if (canonical == null) {
canonical = HexBin.encode(data);
}
return canonical;
}
示例4: setCoverage
import org.apache.xerces.impl.dv.util.HexBin; //导入方法依赖的package包/类
public void setCoverage(byte[] coverage) {
coverageCache = coverage;
this.coverage = HexBin.encode(coverage);
}