kryshen.tema
Class FunctionDataParser

java.lang.Object
  extended by kryshen.tema.FunctionDataParser

public class FunctionDataParser
extends java.lang.Object

Parser for a function data.

Author:
Mikhail Kryshen

Method Summary
 java.io.File createFile(java.lang.String path)
           
 java.util.List<java.lang.String> getArgs()
           
 Context getContext()
           
 java.lang.String getData()
          Get function data as string.
 java.lang.String getData(java.io.Writer out)
          Parse function data into specified Writer.
 int getLastReturnCode()
           
 java.lang.String getNextArg()
           
 TemplateParser getTemplateParser()
           
 TemplateReader getTemplateReader()
           
 boolean hasMoreData()
           
 int parseData(java.io.Writer out)
          Parse function data.
 int parseNextArg(java.io.Writer out)
           
 void skipData()
          Skip function data (do not call any functions).
 void skipNextArg()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseData

public int parseData(java.io.Writer out)
              throws java.io.IOException,
                     TemplateException
Parse function data.

Throws:
java.io.IOException
TemplateException

skipData

public void skipData()
              throws java.io.IOException,
                     TemplateException
Skip function data (do not call any functions).

Throws:
java.io.IOException
TemplateException

getData

public java.lang.String getData()
                         throws java.io.IOException,
                                TemplateException
Get function data as string.

Throws:
java.io.IOException
TemplateException

getData

public java.lang.String getData(java.io.Writer out)
                         throws java.io.IOException,
                                TemplateException
Parse function data into specified Writer. Returns copy of the parsed data as string.

Throws:
java.io.IOException
TemplateException

parseNextArg

public int parseNextArg(java.io.Writer out)
                 throws java.io.IOException,
                        TemplateException
Throws:
java.io.IOException
TemplateException

skipNextArg

public void skipNextArg()
                 throws java.io.IOException,
                        TemplateException
Throws:
java.io.IOException
TemplateException

getNextArg

public java.lang.String getNextArg()
                            throws java.io.IOException,
                                   TemplateException
Throws:
java.io.IOException
TemplateException

getArgs

public java.util.List<java.lang.String> getArgs()
                                         throws java.io.IOException,
                                                TemplateException
Throws:
java.io.IOException
TemplateException

hasMoreData

public boolean hasMoreData()

getLastReturnCode

public int getLastReturnCode()

getTemplateParser

public TemplateParser getTemplateParser()

getContext

public Context getContext()

getTemplateReader

public TemplateReader getTemplateReader()

createFile

public java.io.File createFile(java.lang.String path)