Class FieldHandler

java.lang.Object
com.adaptris.transform.ff.Handler
com.adaptris.transform.ff.FieldHandler

public class FieldHandler extends Handler
  • Constructor Details

    • FieldHandler

      public FieldHandler(Node node)
      Constructor - receives the descriptor node and uses it's details to populate the fields which govern field parsing.
      Parameters:
      node - - the input node
  • Method Details

    • getName

      public String getName()
      getName - returns name of field
      Returns:
      String representation of name of field
    • process

      public void process(StreamParser inputRecord, PrintWriter output)
      process - function which receives a record and reads the next field from it according to the definition read from the message descriptor.
      Parameters:
      inputRecord - - the StreamParser to read the record from
      output - - the StringBuffer to receive the output
    • setCount

      public void setCount(int i)
      Dummy function
    • getCount

      public int getCount()
      Dummy function
    • isThisHandler

      public boolean isThisHandler(StreamParser input, boolean dummy)
    • getContent

      public String getContent()
      Function to return content of field after reading
      Returns:
      String contents of field