org.basex.query.value.item
Class Bin

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
All Implemented Interfaces:
java.lang.Iterable<Item>
Direct Known Subclasses:
B64, Hex

public abstract class Bin
extends Item

Abstract class for binary items.

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
 
Method Summary
 byte[] binary(InputInfo ii)
          Returns the binary content.
 BufferInput input(InputInfo ii)
          Returns an input stream.
 boolean sameAs(Expr cmp)
          Compares the current and specified expression for equality.
 byte[] toJava()
          Returns a Java representation of the value.
 
Methods inherited from class org.basex.query.value.item.Item
bool, castErr, comparable, dbl, dec, description, diff, ebv, eq, equiv, flt, hash, homogeneous, isItem, item, itemAt, iter, iterable, itr, materialize, plan, score, score, size, string, 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, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

binary

public byte[] binary(InputInfo ii)
              throws QueryException
Returns the binary content.

Parameters:
ii - input info
Returns:
content
Throws:
QueryException - query exception

input

public BufferInput input(InputInfo ii)
                  throws QueryException
Description copied from class: Item
Returns an input stream.

Overrides:
input in class Item
Parameters:
ii - input info
Returns:
input stream
Throws:
QueryException - query exception

toJava

public final byte[] toJava()
                    throws QueryException
Description copied from class: Value
Returns a Java representation of the value.

Specified by:
toJava in class Value
Returns:
Java object
Throws:
QueryException - query exception

sameAs

public final boolean sameAs(Expr cmp)
Description copied from class: Expr
Compares the current and specified expression for equality.

Overrides:
sameAs in class Expr
Parameters:
cmp - expression to be compared
Returns:
result of check