com.mobileapps.pcre
Class PCREApplicationConsole

java.lang.Object
  |
  +--com.mobileapps.pcre.PCREApplicationConsole

public class PCREApplicationConsole
extends java.lang.Object
implements PCREConsole


Constructor Summary
PCREApplicationConsole()
          Construct a default console.
PCREApplicationConsole(java.lang.String msg)
          Construct a default console and display a message.
 
Method Summary
 java.io.PrintStream getOutputStream()
          Return the current output stream.
 void PCREAPIErrorMsg(PCREError error)
          Output a PCRE API error message to the console.
 void PCREClientErrorMsg(PCREError error)
          Output a client error message to the console.
 void PCREFatalErrorMsg(PCREError error)
          Output a fatal error message to the console.
 void PCREGatewayErrorMsg(PCREError error)
          Output a Gateway error message to the console.
 void PCREInternalErrorMsg(PCREError error)
          Output an abnormal (internal) error message to the console.
 void PCREOutputMsg(java.lang.String msg)
          Output a message to the console.
 void PCREServerErrorMsg(PCREError error)
          Output a server error message to the console.
 void setOutputStream(java.io.PrintStream stream)
          Set the current output stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PCREApplicationConsole

public PCREApplicationConsole()
Construct a default console. This default console will write its output to System.out, and take its input from System.in.

PCREApplicationConsole

public PCREApplicationConsole(java.lang.String msg)
Construct a default console and display a message.
Parameters:
msg - The message to display
Method Detail

getOutputStream

public java.io.PrintStream getOutputStream()
Return the current output stream.
Returns:
The printstream that is used for output.

PCREAPIErrorMsg

public void PCREAPIErrorMsg(PCREError error)
Output a PCRE API error message to the console.
Specified by:
PCREAPIErrorMsg in interface PCREConsole
Parameters:
error - The error condition to report

PCREClientErrorMsg

public void PCREClientErrorMsg(PCREError error)
Output a client error message to the console.
Specified by:
PCREClientErrorMsg in interface PCREConsole
Parameters:
error - The error condition to report

PCREFatalErrorMsg

public void PCREFatalErrorMsg(PCREError error)
Output a fatal error message to the console.
Specified by:
PCREFatalErrorMsg in interface PCREConsole
Parameters:
error - The error condition to report

PCREGatewayErrorMsg

public void PCREGatewayErrorMsg(PCREError error)
Output a Gateway error message to the console.
Specified by:
PCREGatewayErrorMsg in interface PCREConsole
Parameters:
error - The error condition to report

PCREInternalErrorMsg

public void PCREInternalErrorMsg(PCREError error)
Output an abnormal (internal) error message to the console.
Specified by:
PCREInternalErrorMsg in interface PCREConsole
Parameters:
error - The error condition to report

PCREOutputMsg

public void PCREOutputMsg(java.lang.String msg)
Output a message to the console.
Specified by:
PCREOutputMsg in interface PCREConsole
Parameters:
msg - The message to write

PCREServerErrorMsg

public void PCREServerErrorMsg(PCREError error)
Output a server error message to the console.
Specified by:
PCREServerErrorMsg in interface PCREConsole
Parameters:
error - The error condition to report

setOutputStream

public void setOutputStream(java.io.PrintStream stream)
Set the current output stream.
Parameters:
stream - The new output stream.