org.basex.query.value.item
Class B64Stream

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
                          extended by org.basex.query.value.item.B64Stream
All Implemented Interfaces:
java.lang.Iterable<Item>

public final class B64Stream
extends B64

Streamable 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
B64Stream(IO in, Err err)
          Constructor.
 
Method Summary
 byte[] binary(InputInfo ii)
          Returns the binary content.
 BufferInput input(InputInfo ii)
          Returns an input stream.
 Item materialize(InputInfo ii)
          Materializes streamable values, or returns a self reference.
 java.lang.String toString()
           
 
Methods inherited from class org.basex.query.value.item.B64
eq, string
 
Methods inherited from class org.basex.query.value.item.Bin
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, 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

B64Stream

public B64Stream(IO in,
                 Err err)
Constructor.

Parameters:
in - input
err - error message to be thrown
Method Detail

binary

public byte[] binary(InputInfo ii)
              throws QueryException
Description copied from class: Bin
Returns the binary content.

Overrides:
binary in class Bin
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 Bin
Parameters:
ii - input info
Returns:
input stream
Throws:
QueryException - query exception

materialize

public Item materialize(InputInfo ii)
                 throws QueryException
Description copied from class: Item
Materializes streamable values, or returns a self reference.

Overrides:
materialize in class Item
Parameters:
ii - input info
Returns:
materialized item
Throws:
QueryException - query exception

toString

public java.lang.String toString()
Overrides:
toString in class B64