Java Doc for TerminalIO.java in  » Net » j2ssh » com » sshtools » daemon » terminal » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » j2ssh » com.sshtools.daemon.terminal 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sshtools.daemon.terminal.TerminalIO

TerminalIO
public class TerminalIO implements PseudoTerminal(Code)

author:
   $author$
version:
   $Revision: 1.13 $


Field Summary
final public static  intBACKSPACE
    
final public static  intBCOLOR
    
final public static  intBEL
    
final public static  intBLACK
    
final public static  intBLINK
    
final public static  intBLINK_OFF
    
final public static  intBLUE
    
final public static  intBOLD
    
final public static  intBOLD_OFF
    
final public static  intBS
    
final public static  intBYTEMISSING
    
final public static  intCOLORINIT
    
final public static  intCR
    
final public static  StringCRLF
    
final public static  intCYAN
    
final public static  intCharacterUpdate
    
final public static  intDEL
    
final public static  intDELETE
    
final public static  intDOWN
    
final public static  intEBOL
    
final public static  intEBOS
    
final public static  intEEL
    
final public static  intEEOL
    
final public static  intEEOS
    
final public static  intEES
    
final public static  intENTER
    
final public static  intEOL_CR
    
final public static  intEOL_CRLF
    
final public static  intESCAPE
    
final public static  intEditBuffer
    
final public static  intFCOLOR
    
final public static  intGREEN
    
final public static  intHANDLED
    
final public static  int[]HOME
    
final public static  intIOERROR
    
final public static  intITALIC
    
final public static  intITALIC_OFF
    
final public static  intLEFT
    
final public static  intLF
    
final public static  intLOGOUTREQUEST
    
final public static  intLineEditBuffer
    
final public static  intLineUpdate
    
final public static  intMAGENTA
    
final public static  intRED
    
final public static  intRESET
    
final public static  intRESTORECURSOR
    
final public static  intRIGHT
    
final public static  intSTORECURSOR
    
final public static  intSTYLE
    
final public static  intScreenpartUpdate
    
final public static  intTABULATOR
    
final public static  intUNDERLINED
    
final public static  intUNDERLINED_OFF
    
final public static  intUNRECOGNIZED
    
final public static  intUP
    
final public static  intYELLOW
    
final public static  intwhite
    

Constructor Summary
public  TerminalIO(InputStream in, OutputStream out, String term, int cols, int rows)
    

Method Summary
public  voidattachStreams(InputStream in, OutputStream out)
    
public  voidbell()
    
public  voidbindSlaveInputStream(InputStream slaveIn)
    
public  voidbindSlaveOutputStream(OutputStream slaveOut)
    
public  voidclose()
    
public  voidcloseInput()
    
public  voidcloseOutput()
    
public  booleandefineScrollRegion(int topmargin, int bottommargin)
    
public  voiddetachStreams()
    
public  voideraseLine()
    
public  voideraseScreen()
    
public  voideraseToBeginOfLine()
    
public  voideraseToBeginOfScreen()
    
public  voideraseToEndOfLine()
    
public  voideraseToEndOfScreen()
    
public  voidflush()
    
public  InputStreamgetAttachedInputStream()
    
public  OutputStreamgetAttachedOutputStream()
    
public  intgetColumns()
    
public  intgetEOL()
    
public  StringgetEOLString()
    
public  StringgetEncodedTerminalModes()
    
public  intgetHeight()
    
public  InputStreamgetMasterInputStream()
    
public  intgetRows()
    
public  OutputStreamgetSlaveOutputStream()
    
public  StringgetTerm()
    
public  TerminalgetTerminal()
    
public  intgetWidth()
    
public  voidhomeCursor()
    
public  booleanisAutoflushing()
    
public  booleanisSignalling()
    
public  voidmoveCursor(int direction, int times)
    
public  voidmoveDown(int times)
    
public  voidmoveLeft(int times)
    
public  voidmoveRight(int times)
    
public  voidmoveUp(int times)
    
public  voidprintln(String str)
    
public  voidprintln()
    
public  intread()
    
public  voidresetAttributes()
    
public  voidrestoreCursor()
    
public  voidsetAutoflushing(boolean b)
    
public  voidsetBackgroundColor(int color)
    
public  voidsetBlink(boolean b)
    
public  voidsetBold(boolean b)
    
public  voidsetCursor(int row, int col)
    
public  voidsetDefaultTerminal()
    
public  voidsetEOL(int eol)
    
public  voidsetForegroundColor(int color)
    
public  voidsetItalic(boolean b)
    
public  voidsetSignalling(boolean bool)
    
public  voidsetTerminal(String terminalName)
    
public  voidsetUnderlined(boolean b)
    
public  voidstoreCursor()
    
public  voidwrite(char ch)
    
public  voidwrite(String str)
    
public  voidwrite(byte b)
    
public  voidwrite(int i)
    
public  voidwrite(byte[] sequence)
    
public  voidwrite(int[] sequence)
    

Field Detail
BACKSPACE
final public static int BACKSPACE(Code)



BCOLOR
final public static int BCOLOR(Code)



BEL
final public static int BEL(Code)



BLACK
final public static int BLACK(Code)



BLINK
final public static int BLINK(Code)



BLINK_OFF
final public static int BLINK_OFF(Code)



BLUE
final public static int BLUE(Code)



BOLD
final public static int BOLD(Code)



BOLD_OFF
final public static int BOLD_OFF(Code)



BS
final public static int BS(Code)



BYTEMISSING
final public static int BYTEMISSING(Code)



COLORINIT
final public static int COLORINIT(Code)



CR
final public static int CR(Code)



CRLF
final public static String CRLF(Code)



CYAN
final public static int CYAN(Code)



CharacterUpdate
final public static int CharacterUpdate(Code)



DEL
final public static int DEL(Code)



DELETE
final public static int DELETE(Code)



DOWN
final public static int DOWN(Code)



EBOL
final public static int EBOL(Code)



EBOS
final public static int EBOS(Code)



EEL
final public static int EEL(Code)



EEOL
final public static int EEOL(Code)



EEOS
final public static int EEOS(Code)



EES
final public static int EES(Code)



ENTER
final public static int ENTER(Code)



EOL_CR
final public static int EOL_CR(Code)



EOL_CRLF
final public static int EOL_CRLF(Code)



ESCAPE
final public static int ESCAPE(Code)



EditBuffer
final public static int EditBuffer(Code)



FCOLOR
final public static int FCOLOR(Code)



GREEN
final public static int GREEN(Code)



HANDLED
final public static int HANDLED(Code)



HOME
final public static int[] HOME(Code)



IOERROR
final public static int IOERROR(Code)



ITALIC
final public static int ITALIC(Code)



ITALIC_OFF
final public static int ITALIC_OFF(Code)



LEFT
final public static int LEFT(Code)



LF
final public static int LF(Code)



LOGOUTREQUEST
final public static int LOGOUTREQUEST(Code)



LineEditBuffer
final public static int LineEditBuffer(Code)



LineUpdate
final public static int LineUpdate(Code)



MAGENTA
final public static int MAGENTA(Code)



RED
final public static int RED(Code)



RESET
final public static int RESET(Code)



RESTORECURSOR
final public static int RESTORECURSOR(Code)



RIGHT
final public static int RIGHT(Code)



STORECURSOR
final public static int STORECURSOR(Code)



STYLE
final public static int STYLE(Code)



ScreenpartUpdate
final public static int ScreenpartUpdate(Code)



TABULATOR
final public static int TABULATOR(Code)



UNDERLINED
final public static int UNDERLINED(Code)



UNDERLINED_OFF
final public static int UNDERLINED_OFF(Code)



UNRECOGNIZED
final public static int UNRECOGNIZED(Code)



UP
final public static int UP(Code)



YELLOW
final public static int YELLOW(Code)



white
final public static int white(Code)




Constructor Detail
TerminalIO
public TerminalIO(InputStream in, OutputStream out, String term, int cols, int rows) throws IOException(Code)




Method Detail
attachStreams
public void attachStreams(InputStream in, OutputStream out)(Code)

Parameters:
  in -
Parameters:
  out -



bell
public void bell() throws IOException(Code)

throws:
  IOException -



bindSlaveInputStream
public void bindSlaveInputStream(InputStream slaveIn)(Code)

Parameters:
  slaveIn -



bindSlaveOutputStream
public void bindSlaveOutputStream(OutputStream slaveOut)(Code)

Parameters:
  slaveOut -



close
public void close() throws IOException(Code)

throws:
  IOException -



closeInput
public void closeInput() throws IOException(Code)

throws:
  IOException -



closeOutput
public void closeOutput() throws IOException(Code)

throws:
  IOException -



defineScrollRegion
public boolean defineScrollRegion(int topmargin, int bottommargin) throws IOException(Code)

Parameters:
  topmargin -
Parameters:
  bottommargin -
throws:
  IOException -



detachStreams
public void detachStreams()(Code)



eraseLine
public void eraseLine() throws IOException(Code)

throws:
  IOException -



eraseScreen
public void eraseScreen() throws IOException(Code)

throws:
  IOException -



eraseToBeginOfLine
public void eraseToBeginOfLine() throws IOException(Code)

throws:
  IOException -



eraseToBeginOfScreen
public void eraseToBeginOfScreen() throws IOException(Code)

throws:
  IOException -



eraseToEndOfLine
public void eraseToEndOfLine() throws IOException(Code)

throws:
  IOException -



eraseToEndOfScreen
public void eraseToEndOfScreen() throws IOException(Code)

throws:
  IOException -



flush
public void flush() throws IOException(Code)

throws:
  IOException -



getAttachedInputStream
public InputStream getAttachedInputStream() throws IOException(Code)



getAttachedOutputStream
public OutputStream getAttachedOutputStream() throws IOException(Code)

throws:
  IOException -



getColumns
public int getColumns()(Code)



getEOL
public int getEOL()(Code)



getEOLString
public String getEOLString()(Code)



getEncodedTerminalModes
public String getEncodedTerminalModes()(Code)



getHeight
public int getHeight()(Code)



getMasterInputStream
public InputStream getMasterInputStream()(Code)



getRows
public int getRows()(Code)



getSlaveOutputStream
public OutputStream getSlaveOutputStream()(Code)



getTerm
public String getTerm()(Code)



getTerminal
public Terminal getTerminal()(Code)



getWidth
public int getWidth()(Code)



homeCursor
public void homeCursor() throws IOException(Code)

throws:
  IOException -



isAutoflushing
public boolean isAutoflushing()(Code)



isSignalling
public boolean isSignalling()(Code)



moveCursor
public void moveCursor(int direction, int times) throws IOException(Code)

Parameters:
  direction -
Parameters:
  times -
throws:
  IOException -



moveDown
public void moveDown(int times) throws IOException(Code)

Parameters:
  times -
throws:
  IOException -



moveLeft
public void moveLeft(int times) throws IOException(Code)

Parameters:
  times -
throws:
  IOException -



moveRight
public void moveRight(int times) throws IOException(Code)

Parameters:
  times -
throws:
  IOException -



moveUp
public void moveUp(int times) throws IOException(Code)

Parameters:
  times -
throws:
  IOException -



println
public void println(String str) throws IOException(Code)

Parameters:
  str -
throws:
  IOException -



println
public void println() throws IOException(Code)

throws:
  IOException -



read
public int read() throws IOException(Code)

throws:
  IOException -



resetAttributes
public void resetAttributes() throws IOException(Code)

throws:
  IOException -



restoreCursor
public void restoreCursor() throws IOException(Code)

throws:
  IOException -



setAutoflushing
public void setAutoflushing(boolean b)(Code)

Parameters:
  b -



setBackgroundColor
public void setBackgroundColor(int color) throws IOException(Code)

Parameters:
  color -
throws:
  IOException -



setBlink
public void setBlink(boolean b) throws IOException(Code)

Parameters:
  b -
throws:
  IOException -



setBold
public void setBold(boolean b) throws IOException(Code)

Parameters:
  b -
throws:
  IOException -



setCursor
public void setCursor(int row, int col) throws IOException(Code)

Parameters:
  row -
Parameters:
  col -
throws:
  IOException -



setDefaultTerminal
public void setDefaultTerminal() throws IOException(Code)



setEOL
public void setEOL(int eol)(Code)

Parameters:
  eol -



setForegroundColor
public void setForegroundColor(int color) throws IOException(Code)

Parameters:
  color -
throws:
  IOException -



setItalic
public void setItalic(boolean b) throws IOException(Code)

Parameters:
  b -
throws:
  IOException -



setSignalling
public void setSignalling(boolean bool)(Code)

Parameters:
  bool -



setTerminal
public void setTerminal(String terminalName) throws IOException(Code)

Parameters:
  terminalName -
throws:
  IOException -



setUnderlined
public void setUnderlined(boolean b) throws IOException(Code)

Parameters:
  b -
throws:
  IOException -



storeCursor
public void storeCursor() throws IOException(Code)

throws:
  IOException -



write
public void write(char ch) throws IOException(Code)

Parameters:
  ch -
throws:
  IOException -



write
public void write(String str) throws IOException(Code)

Parameters:
  str -
throws:
  IOException -



write
public void write(byte b) throws IOException(Code)

Parameters:
  b -
throws:
  IOException -



write
public void write(int i) throws IOException(Code)

Parameters:
  i -
throws:
  IOException -



write
public void write(byte[] sequence) throws IOException(Code)

Parameters:
  sequence -
throws:
  IOException -



write
public void write(int[] sequence) throws IOException(Code)

Parameters:
  sequence -
throws:
  IOException -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.