Java Doc for EndPoint.java in  » Sevlet-Container » jetty-modules » org » mortbay » io » 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 » Sevlet Container » jetty modules » org.mortbay.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.mortbay.io.EndPoint

All known Subclasses:   org.mortbay.io.nio.ChannelEndPoint,  org.mortbay.io.ByteArrayEndPoint,  org.mortbay.io.bio.StreamEndPoint,
EndPoint
public interface EndPoint (Code)

author:
   gregw
author:
   A transport EndPoint




Method Summary
public  booleanblockReadable(long millisecs)
    
public  booleanblockWritable(long millisecs)
    
 voidclose()
    
 intfill(Buffer buffer)
     Fill the buffer from the current putIndex to it's capacity from whatever byte source is backing the buffer.
 intflush(Buffer buffer)
     Flush the buffer from the current getIndex to it's putIndex using whatever byte sink is backing the buffer.
 intflush(Buffer header, Buffer buffer, Buffer trailer)
     Flush the buffer from the current getIndex to it's putIndex using whatever byte sink is backing the buffer.
public  voidflush()
     Flush any buffered output.
public  StringgetLocalAddr()
    
public  StringgetLocalHost()
    
public  intgetLocalPort()
    
public  StringgetRemoteAddr()
    
public  StringgetRemoteHost()
    
public  intgetRemotePort()
    
public  ObjectgetTransport()
    
public  booleanisBlocking()
    
public  booleanisBufferingInput()
    
public  booleanisBufferingOutput()
    
public  booleanisBufferred()
    
public  booleanisOpen()
    



Method Detail
blockReadable
public boolean blockReadable(long millisecs) throws IOException(Code)



blockWritable
public boolean blockWritable(long millisecs) throws IOException(Code)



close
void close() throws IOException(Code)
Close any backing stream associated with the buffer



fill
int fill(Buffer buffer) throws IOException(Code)
Fill the buffer from the current putIndex to it's capacity from whatever byte source is backing the buffer. The putIndex is increased if bytes filled. The buffer may chose to do a compact before filling. an int value indicating the number of bytes filled or -1 if EOF is reached.



flush
int flush(Buffer buffer) throws IOException(Code)
Flush the buffer from the current getIndex to it's putIndex using whatever byte sink is backing the buffer. The getIndex is updated with the number of bytes flushed. Any mark set is cleared. If the entire contents of the buffer are flushed, then an implicit empty() is done.
Parameters:
  buffer - The buffer to flush. This buffers getIndex is updated. the number of bytes written



flush
int flush(Buffer header, Buffer buffer, Buffer trailer) throws IOException(Code)
Flush the buffer from the current getIndex to it's putIndex using whatever byte sink is backing the buffer. The getIndex is updated with the number of bytes flushed. Any mark set is cleared. If the entire contents of the buffer are flushed, then an implicit empty() is done. The passed header/trailer buffers are written before/after the contents of this buffer. This may be done either as gather writes, as a poke into this buffer or as several writes. The implementation is free to select the optimal mechanism.
Parameters:
  header - A buffer to write before flushing this buffer. This buffers getIndex is updated.
Parameters:
  buffer - The buffer to flush. This buffers getIndex is updated.
Parameters:
  trailer - A buffer to write after flushing this buffer. This buffers getIndex is updated. the total number of bytes written.



flush
public void flush() throws IOException(Code)
Flush any buffered output. May fail to write all data if endpoint is non-blocking
throws:
  IOException -



getLocalAddr
public String getLocalAddr()(Code)
The local IP address to which this EndPoint is bound, or nullif this EndPoint does not represent a network connection.



getLocalHost
public String getLocalHost()(Code)
The local host name to which this EndPoint is bound, or nullif this EndPoint does not represent a network connection.



getLocalPort
public int getLocalPort()(Code)
The local port number on which this EndPoint is listening, or 0if this EndPoint does not represent a network connection.



getRemoteAddr
public String getRemoteAddr()(Code)
The remote IP address to which this EndPoint is connected, or nullif this EndPoint does not represent a network connection.



getRemoteHost
public String getRemoteHost()(Code)
The host name of the remote machine to which this EndPoint is connected, or nullif this EndPoint does not represent a network connection.



getRemotePort
public int getRemotePort()(Code)
The remote port number to which this EndPoint is connected, or 0if this EndPoint does not represent a network connection.



getTransport
public Object getTransport()(Code)
The underlying transport object (socket, channel, etc.)



isBlocking
public boolean isBlocking()(Code)



isBufferingInput
public boolean isBufferingInput()(Code)
True if the endpoint has some buffered input data



isBufferingOutput
public boolean isBufferingOutput()(Code)
True if the endpoint has some buffered output data



isBufferred
public boolean isBufferred()(Code)



isOpen
public boolean isOpen()(Code)



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