com.pushtotest.tool.protocolhandler.Telnet
Class ScreenBuffer

java.lang.Object
  extended by com.pushtotest.tool.protocolhandler.Telnet.ScreenBuffer

public class ScreenBuffer
extends java.lang.Object


Constructor Summary
ScreenBuffer()
          Size of the screen buffer
ScreenBuffer(int theRows, int theColumns)
          Creates a new instance of ScreenBuffer
 
Method Summary
 void carrierReturn()
          Makes the carrier return function
 void clearScreen()
          Clears the screen
 boolean exitsInBuffer(java.lang.String value)
          Search if some string exits in the buffer
static java.lang.String fromHexToBin(java.lang.String in)
           
 java.lang.String getOutput(int x, int y, int length)
          Gives the string in the buffer
 int getOutputLine(int StartLine, int linesXOutput, int StartCol, java.lang.String SearchText)
          Simple search system
 java.lang.StringBuffer getSnapshot()
          Get the current buffer status
 void gotoXY(int row, int col)
           
 java.lang.String lineWith(java.lang.String pattern)
           
 void newLine()
          Makes the new line function
 void printScreen()
          Prints the buffer
 void writeChar(char theChar)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenBuffer

public ScreenBuffer(int theRows,
                    int theColumns)
Creates a new instance of ScreenBuffer


ScreenBuffer

public ScreenBuffer()
Size of the screen buffer

Method Detail

clearScreen

public void clearScreen()
Clears the screen


getOutputLine

public int getOutputLine(int StartLine,
                         int linesXOutput,
                         int StartCol,
                         java.lang.String SearchText)
Simple search system


getOutput

public java.lang.String getOutput(int x,
                                  int y,
                                  int length)
Gives the string in the buffer


printScreen

public void printScreen()
Prints the buffer


getSnapshot

public java.lang.StringBuffer getSnapshot()
Get the current buffer status


carrierReturn

public void carrierReturn()
Makes the carrier return function


newLine

public void newLine()
Makes the new line function


gotoXY

public void gotoXY(int row,
                   int col)

fromHexToBin

public static java.lang.String fromHexToBin(java.lang.String in)

writeChar

public void writeChar(char theChar)

lineWith

public java.lang.String lineWith(java.lang.String pattern)

exitsInBuffer

public boolean exitsInBuffer(java.lang.String value)
Search if some string exits in the buffer