Package org.basex.query.value.item
Class B64
- Direct Known Subclasses:
B64Lazy
Base64 item (
xs:base64Binary).- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal intReturns the difference between the current and the specified item.final booleaneq(Item item, Collation coll, StaticContext sc, InputInfo ii) Compares the items for equality.static B64get(byte value) Returns an instance of this class for single bytes.static B64get(byte[] value) Returns an instance of this class.static B64Returns an instance of this class.static B64Returns an instance of this class.static byte[]Converts the given token into a byte array.static byte[]Converts the given item to a byte array.voidplan(QueryString qs) Creates a query string.byte[]Returns a string representation of the value.Methods inherited from class org.basex.query.value.item.Item
atomItem, atomSize, atomValue, bool, cache, comparable, dbl, ddo, dec, description, ebv, equiv, flt, hash, instanceOf, item, itemAt, iter, itr, materialize, persistent, plan, refineType, reverse, sameKey, score, seqType, size, subsequence, test, typeId, xdmInfoMethods inherited from class org.basex.query.value.Value
accept, checkUp, compile, copy, count, exprSize, has, inline, inlineable, isEmpty, isItem, iter, iterator, materialize, serialize, serialize, serialize, valueMethods inherited from class org.basex.query.expr.Expr
arg, args, atomIter, data, data, funcType, hasFreeVars, indexAccessible, isSimple, markTailCalls, mergeEbv, optimize, simplifyFor, typeCheck, uses, vacuous, visitAllMethods inherited from class org.basex.query.expr.ExprInfo
toErrorString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
EMPTY
Empty value.
-
-
Method Details
-
get
Returns an instance of this class for single bytes.- Parameters:
value- value- Returns:
- instance
-
get
Returns an instance of this class.- Parameters:
value- value- Returns:
- instance
-
get
Returns an instance of this class.- Parameters:
bin- binary inputii- input info- Returns:
- instance
- Throws:
QueryException- query exception
-
get
Returns an instance of this class.- Parameters:
value- textual representationii- input info- Returns:
- instance
- Throws:
QueryException- query exception
-
string
Description copied from class:ItemReturns a string representation of the value.- Specified by:
stringin classItem- Parameters:
ii- input info (can benull)- Returns:
- string value
- Throws:
QueryException- if the item cannot be atomized (caused by function or streaming items)
-
eq
public final boolean eq(Item item, Collation coll, StaticContext sc, InputInfo ii) throws QueryException Description copied from class:ItemCompares the items for equality.- Specified by:
eqin classItem- Parameters:
item- item to be comparedcoll- collation (can benull)sc- static context; required for comparing items of type xs:QName (can benull)ii- input info (can benull)- Returns:
- result of check
- Throws:
QueryException- query exception
-
diff
Description copied from class:ItemReturns the difference between the current and the specified item. This function is overwritten by the corresponding implementations.- Overrides:
diffin classItem- Parameters:
item- item to be comparedcoll- collation (can benull)ii- input info (can benull)- Returns:
- difference
- Throws:
QueryException- query exception
-
parse
Converts the given item to a byte array.- Parameters:
item- item to be convertedii- input info- Returns:
- byte array
- Throws:
QueryException- query exception
-
parse
Converts the given token into a byte array.- Parameters:
value- value to be convertedii- input info- Returns:
- byte array
- Throws:
QueryException- query exception
-
plan
Description copied from class:ExprInfoCreates a query string.
-