org.basex.query.util.format
Class FormatParser

java.lang.Object
  extended by org.basex.query.util.format.FormatParser
Direct Known Subclasses:
DateFormat, IntFormat

public abstract class FormatParser
extends java.lang.Object

Format parser for integers and dates.

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

Nested Class Summary
protected static class FormatUtil.Case
          Cases.
 
Field Summary
protected  InputInfo info
          Input information.
 
Constructor Summary
protected FormatParser(InputInfo ii)
          Constructor for formatting integers.
 
Method Summary
protected  void finish(byte[] pres)
          Finishes format parsing.
protected  byte[] presentation(byte[] pic, byte[] def, boolean date)
          Parses and returns the presentation modifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

info

protected final InputInfo info
Input information.

Constructor Detail

FormatParser

protected FormatParser(InputInfo ii)
Constructor for formatting integers.

Parameters:
ii - input info
Method Detail

presentation

protected byte[] presentation(byte[] pic,
                              byte[] def,
                              boolean date)
                       throws QueryException
Parses and returns the presentation modifier.

Parameters:
pic - picture
def - default token
date - date flag
Returns:
presentation modifier
Throws:
QueryException - query exception

finish

protected void finish(byte[] pres)
Finishes format parsing.

Parameters:
pres - presentation string