Class B64Lazy

All Implemented Interfaces:
Iterable<Item>, Lazy

public final class B64Lazy extends B64 implements Lazy
Lazy base64 item (xs:base64Binary).
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • B64Lazy

      public B64Lazy(IO input, QueryError error)
      Constructor.
      Parameters:
      input - input
      error - error message to be thrown
  • Method Details

    • 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 (can be null)
      Returns:
      input stream
      Throws:
      QueryException - query exception
    • cache

      public void cache(boolean lazy, InputInfo ii) throws QueryException
      Description copied from class: Item
      Caches lazy values. Overwritten by Lazy, XQMap and XQArray.
      Overrides:
      cache in class Item
      Parameters:
      lazy - lazy caching
      ii - input info
      Throws:
      QueryException - query exception
    • cache

      public void cache(InputInfo ii) throws QueryException
      Description copied from interface: Lazy
      Caches the value.
      Specified by:
      cache in interface Lazy
      Parameters:
      ii - input info
      Throws:
      QueryException - query exception
    • isCached

      public boolean isCached()
      Description copied from interface: Lazy
      Indicates if the contents of this item have been cached.
      Specified by:
      isCached in interface Lazy
      Returns:
      result of check
    • plan

      public void plan(QueryString qs)
      Description copied from class: ExprInfo
      Creates a query string.
      Overrides:
      plan in class B64
      Parameters:
      qs - query string builder