org.basex.query.value.item
Class B64

java.lang.Object
  extended by org.basex.data.ExprInfo
      extended by org.basex.query.expr.Expr
          extended by org.basex.query.value.Value
              extended by org.basex.query.value.item.Item
                  extended by org.basex.query.value.item.Bin
                      extended by org.basex.query.value.item.B64
All Implemented Interfaces:
java.lang.Iterable<Item>
Direct Known Subclasses:
B64Stream

public class B64
extends Bin

Base64 item (xs:base64Binary).

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.expr.Expr
Expr.Flag
 
Field Summary
 
Fields inherited from class org.basex.query.value.item.Item
score, UNDEF
 
Fields inherited from class org.basex.query.value.Value
type
 
Constructor Summary
B64(Bin b, InputInfo ii)
          Constructor.
B64(byte[] d)
          Constructor.
B64(byte[] v, InputInfo ii)
          Constructor.
 
Method Summary
 boolean eq(Item it, Collation coll, InputInfo ii)
          Checks the items for equality.
 byte[] string(InputInfo ii)
          Returns a string representation of the value.
 java.lang.String toString()
           
 
Methods inherited from class org.basex.query.value.item.Bin
binary, input, sameAs, toJava
 
Methods inherited from class org.basex.query.value.item.Item
bool, castErr, comparable, dbl, dec, description, diff, ebv, equiv, flt, hash, homogeneous, isItem, item, itemAt, iter, iterable, itr, materialize, plan, score, score, size, test, type, typeId, writeTo, xdmInfo
 
Methods inherited from class org.basex.query.value.Value
accept, cache, checkUp, compile, copy, count, data, exprSize, has, inline, isValue, iter, iterator, removable, serialize, value
 
Methods inherited from class org.basex.query.expr.Expr
addText, compEbv, copy, hasFreeVars, indexAccessible, indexEquivalent, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, uses, visitAll
 
Methods inherited from class org.basex.data.ExprInfo
addPlan, addPlan, info, planAttr, planElem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

B64

public B64(byte[] d)
Constructor.

Parameters:
d - binary data

B64

public B64(byte[] v,
           InputInfo ii)
    throws QueryException
Constructor.

Parameters:
v - textual representation
ii - input info
Throws:
QueryException - query exception

B64

public B64(Bin b,
           InputInfo ii)
    throws QueryException
Constructor.

Parameters:
b - base64 input
ii - input info
Throws:
QueryException - query exception
Method Detail

string

public byte[] string(InputInfo ii)
              throws QueryException
Description copied from class: Item
Returns a string representation of the value.

Specified by:
string in class Item
Parameters:
ii - input info, use null if none is available
Returns:
string value
Throws:
QueryException - if the item can't be atomized

eq

public final boolean eq(Item it,
                        Collation coll,
                        InputInfo ii)
                 throws QueryException
Description copied from class: Item
Checks the items for equality.

Specified by:
eq in class Item
Parameters:
it - item to be compared
coll - collation
ii - input info
Returns:
result of check
Throws:
QueryException - query exception

toString

public java.lang.String toString()
Specified by:
toString in class ExprInfo